zopflipng
Optimize PNG files with Zopfli compression
TLDR
Optimize PNG
SYNOPSIS
zopflipng [-m] [-q] [--lossytransparent] [options] input output_
DESCRIPTION
zopflipng optimizes PNG files using the Zopfli compression algorithm, which produces deflate-compatible output that works everywhere standard PNG files do. It typically achieves 3-8% smaller files compared to standard PNG optimization tools.
The tool strips metadata chunks by default for maximum size reduction, though specific chunks can be preserved with the --keepchunks option. A lossy transparency mode (--lossy_transparent) further reduces file size by optimizing invisible fully-transparent pixels without any visible quality change.
zopflipng is intentionally slow, trading compression time for smaller output. It is designed for final-stage optimization in build pipelines rather than interactive use. The -m flag enables additional iterations for even better compression at the cost of more processing time.
PARAMETERS
-m, --more
More iterations.-q
Quick, less thorough.-y
Overwrite output.--lossy_transparent
Lossy alpha optimization.--keepchunks CHUNKS
Preserve chunks.--splitting N
Block splitting.--prefix PREFIX
Output prefix.
CAVEATS
Very slow for large images. CPU intensive. Best for final builds.
HISTORY
Zopfli was created by Google for maximum deflate compression. zopflipng applies it to PNG images.
