Researching PNG Resizing

A lot has been written about resizing PNGs and the comparison of different tools that allow it.

The following are my top picks:

  1. pngquant - fastest of the lot. Also has a node interface
  2. optipng - Changes PNG compression algo
  3. pngnq - Reduces the colorspace used by the PNG image

If not using pngquant, the best result is by first using pngnq to reduce colorspace, and then using optipng to compress it further.

ToDo

I want to integrate with the current PNG resizer into a on the fly url based resizer. We currently use image resizer which is internally based on sharp. The problem with sharp is that it doesn’t work well with PNGs quality reduction.

Found a very customizable resizer that can probably integrated with pngquant for on the fly PNG quality reduction.

Author

Sahil Ahuja

Posted on

2017-10-24

Updated on

2020-12-21

Licensed under

Comments