Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (17 sloc) 1.14 KB
title date author tags categories
Researching PNG Resizing
2017-10-24 13:33:58 +0530
Sahil Ahuja
png
todo
blog

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.

You can’t perform that action at this time.