Mobile app version of vmapp.org
Login or Join
Michele947

: Would compressing a PNG more than once reduce the number of colors or affect something else? For a website I control that sells consumer goods, fast page performance is important, especially

@Michele947

Posted in: #Compression #Images #Png

For a website I control that sells consumer goods, fast page performance is important, especially for potential customers on mobile devices. Therefore, we want our images to be as small as possible without showing any noticeable degradation of image quality. Because of that, we use PNG files when providing graphic content such as infographics on how a product helps a customer.

The website TinyPNG.com compresses PNG files by stripping metadata and converting from 24 bit to 8 bit depth, so we are using this site to compress PNGs served up from our site. I found that you can run it repeatedly on the same file and it keeps getting smaller. Why would the file keep getting smaller and will the result be noticeable? Do you just get fewer and fewer colors?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Michele947

1 Comments

Sorted by latest first Latest Oldest Best

 

@Becky754

That's exactly it - the file gets smaller because the colors are combined into fewer, more prominent colors. For example, multiple shades of blue living next to each other will combine to display as fewer, more uniform shades, in the process making the image file less heavy. Each time you run your software, it'll find places to optimize this process, though with every run the quality will generally diminish, as will the amount of optimizations the software can perform. Find a sweet spot you can live with, and save your original. I like to use Optimizilla - I've found that in a pinch, it does a good job and gives you plenty of control: optimizilla.com/

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme