APNG optimizer

last modified on 10 February 2020, by Cédric Louvrier

pingo could try to optimize APNG files using better transformations to decrease the filesize. this could be done losslessly or using lossy transformations

N: from 0 to 9 — 0: fast and good compression — 9: slow, but better compression
pingo -sN target
original file: firefox-org.png (621.82 KB): APNG optimizer (lossless)
original APNG Optimizer 1.4 -z2 pingo -s0
firefox original firefox original firefox pingo -s0
621.82 KB 539.98 KB (28.02s) 528.01 KB (0.89s)

lossy filtering

N: from 1 to 100 — 1: smaller filesize, worse quality — 100: bigger filesize, better quality
pingo -pngfilter=N target
original file: firefox-org.png (621.82 KB): APNG optimizer (lossy)
original pingo -pngfilter=1
firefox original firefox original
621.82 KB 287.01 KB (0.64s)

lossy paletted

N: from 1 to 100 — 1: smaller filesize, worse quality — 100: bigger filesize, better quality
pingo -pngpalette=N target
original file: firefox-org.png (621.82 KB): APNG optimizer (lossy)
original pingo -pngpalette
firefox original firefox original
621.82 KB 140.38 KB (1.17s)

experimental

do backup before using pingo. this demonstration is an experimental process — barely tested on some files only. it could be less efficient than other well known implementation or tools introduced (or not) in this article