---
title: "Discussion on \"Resizing images on-the-fly\" | Hashnode"
description: "Discussion on \"Resizing images on-the-fly\". As a web architect, one of the many issues is asset management. And the most significant issue in assets is images. A naive approach would be to set an image and let the browser resize the image via CSS:\nimg {\n    height: 100%;\n    width: 100%;\n    o..."
url: "https://hashnode.com/posts/resizing-images-on-the-fly/651e7b912e25ee87622a0018"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Resizing images on-the-fly](https://apisix.hashnode.dev/resizing-images-on-the-fly?utm_source=hashnode&utm_medium=feed)

As a web architect, one of the many issues is asset management. And the most significant issue in assets is images. A naive approach would be to set an image and let the browser resize the image via CSS: img { height: 100%; width: 100%; o...

Oct 5, 2023 · 5 min read · apisix.hashnode.dev  
Read the article

-   [#web-development](https://hashnode.com/tag/web-development)
-   [#performance](https://hashnode.com/tag/performance)
-   [#cost-optimisation](https://hashnode.com/tag/cost-optimisation)
-   [#apache-apisix](https://hashnode.com/tag/apache-apisix)
-   [#imgproxy](https://hashnode.com/tag/imgproxy)

## Written by

[Nicolas Fränkel](https://hashnode.com/@nfrankel)

@nfrankel · Geneva

  
[View profile](https://hashnode.com/@nfrankel)

Developer Advocate

Technologist focusing on cloud-native technologies, DevOps, CI/CD pipelines, and system observability. His focus revolves around creating technical content, delivering talks, and engaging with developer communities to promote the adoption of modern software practices. With a strong background in software, he has worked extensively with the JVM, applying his expertise across various industries. In addition to his technical work, he is the author of several books and regularly shares insights through his blog and open-source contributions.

## Responses 3

Markdown supported · ⌘↵ to post

[Mats Nilsson](https://hashnode.com/@matsnilsson)

[Oct 16, 2023](https://hashnode.com/posts/resizing-images-on-the-fly/651e7b912e25ee87622a0018/comment/652d1837a377d91a4aa27615)

Good idea

[Lakshya Thakur](https://hashnode.com/@lakbychance)

[Oct 8, 2023](https://hashnode.com/posts/resizing-images-on-the-fly/651e7b912e25ee87622a0018/comment/6522c6aaf786edcd65a691d7)

Great read [Nicolas Fränkel](https://hashnode.com/@nfrankel). Didn't know about `imgproxy` and seems that they have a quite renowned client base as well. Do you have any opinion of how a CDN can be best configured for the dynamically resized images served by the `imgproxy` instances ? If you have had some past experiences here, would love to know.

[Nicolas Fränkel](https://hashnode.com/@nfrankel)

[Oct 15, 2023](https://hashnode.com/posts/resizing-images-on-the-fly/651e7b912e25ee87622a0018/comment/6522c6aaf786edcd65a691d7#reply-652b9e62f7ca6f1033b82014)

Sorry, I just discovered it as well.

But it stands to reason that you put the CDN between your clients and imgproxy to benefit from the caching of the resized images.
