image optimizer for web

Provide option to disable AVG and PAETH filters for PNGs

Dinesh said, on 13/03/2023
Similar to the `-jpgtype=N` option, could you provide an option, e.g. `-pngtype=N`, for disabling AVG and PAETH filters to optimize for decompression speed? This is present in other PNG optimizers:

libpng-1.6.22+ : png_set_filter(write_ptr, 0, PNG_FAST_FILTERS);
pngcrush-1.8.1+ : pngcrush -speed in_file.png out_file.png

The example image optimized using `pingo -sb` compresses a further 3% on the example `pngcrush -speed` compressed file but decompresses over 25% slower due to these filters.
https://i.postimg.cc/cZS4qy8L/example-speed.png pingo -sb example-speed.png
cédric (dev) said, on 19/07/2023
no. i suggest you use another tool for this

reply