---
title: "Comment by John Williams on \"The Complete Guide to Image Compression with OpenCV\" | Hashnode"
description: "Does image file compression affect different size images (or ratios) differently? For example, the difference in clarity between the small images and the large"
url: "https://hashnode.com/posts/the-complete-guide-to-image-compression-with-opencv/66c41de66f68487a0e21a57c/comment/66c779c6dbf19c4a07fed28a"
---

[Discussion](https://hashnode.com/posts/the-complete-guide-to-image-compression-with-opencv/66c41de66f68487a0e21a57c)

Comment [The Complete Guide to Image Compression with OpenCV](https://hashnode.com/posts/the-complete-guide-to-image-compression-with-opencv/66c41de66f68487a0e21a57c)

[John Williams](https://hashnode.com/@jwill8622)

[Aug 22, 2024](https://hashnode.com/posts/the-complete-guide-to-image-compression-with-opencv/66c41de66f68487a0e21a57c/comment/66c779c6dbf19c4a07fed28a)

Does image file compression affect different size images (or ratios) differently? For example, the difference in clarity between the small images and the large backgrounds on sites. And is AVIF any good?

[William Marget](https://hashnode.com/@marget)

[Aug 25, 2024](https://hashnode.com/posts/the-complete-guide-to-image-compression-with-opencv/66c41de66f68487a0e21a57c/comment/66c779c6dbf19c4a07fed28a#reply-66cb035364471d045b0aced8)

Yes John Personally I face this issue when I compress image the pixels not clear.

[Jeremy Morgan](https://hashnode.com/@JeremyMorgan)

[Aug 27, 2024](https://hashnode.com/posts/the-complete-guide-to-image-compression-with-opencv/66c41de66f68487a0e21a57c/comment/66c779c6dbf19c4a07fed28a#reply-66cd38f474d26213e39b5ede)

yes, image file compression works different based on the image size (resolution). It works on a (somewhat) logarithmic scale. Meaning if you take a really low res image (320x240) and reduce the size by 20%, it will look like garbage. Maybe even unusable. If you reduce a 3840x2160 image by 20%, it may not even be noticeable.

In general the more pixels you have to work with, the more optimization you can do before the human eye notices it. In most cases.
