oxipng
Losslessly improve compression of PNG files. tldr-pages
On several platforms
Several platforms
Compress a PNG file (overwrites the file by default)
oxipng path/to/file.pngIdentifyCompress a PNG file and save the output to a new file
oxipng --out path/to/output.png path/to/file.pngIdentifyCompress all PNG files in the current directory using multiple threads
oxipng "*.png"IdentifyCompress a file with a set optimization level (default is 2)
oxipng --opt 0 path/to/file.pngIdentifySet the PNG interlacing type (off removes interlacing, on applies Adam7 interlacing, keep preserves existing interlacing; default is off)
oxipng --interlace off path/to/file.pngIdentifyPerform additional optimization on images with an alpha channel
oxipng --alpha path/to/file.pngIdentifyUse the much slower but stronger Zopfli compressor with max optimization
oxipng --zopfli --opt max path/to/file.pngIdentifyStrip all non-critical metadata chunks
oxipng --strip all path/to/file.pngIdentify