Options (4)
-o, --optbooleanCompress a file with a set optimization level (default is 2)
oxipng {{[-o|--opt]}} {{0|1|2|3|4|5|6|max}} {{path/to/file.png}}-i, --interlacebooleanSet the PNG interlacing type (`off` removes interlacing, `on` applies Adam7 interlacing, `keep` preserves existing interlacing; default is `off`)
oxipng {{[-i|--interlace]}} {{off|on|keep}} {{path/to/file.png}}-a, --alphabooleanPerform additional optimization on images with an alpha channel
oxipng {{[-a|--alpha]}} {{path/to/file.png}}-z, --zopflibooleanUse the much slower but stronger Zopfli compressor with max optimization
oxipng {{[-z|--zopfli]}} {{[-o|--opt]}} max {{path/to/file.png}}Examples (8)
Compress a PNG file (overwrites the file by default)
oxipng path/to/file.pngCompress a PNG file and save the output to a new file
oxipng --out path/to/output.png path/to/file.pngCompress all PNG files in the current directory using multiple threads
oxipng "*.png"Compress a file with a set optimization level (default is 2)
oxipng [-o|--opt] 0|1|2|3|4|5|6|max path/to/file.pngSet the PNG interlacing type (`off` removes interlacing, `on` applies Adam7 interlacing, `keep` preserves existing interlacing; default is `off`)
oxipng [-i|--interlace] off|on|keep path/to/file.pngPerform additional optimization on images with an alpha channel
oxipng [-a|--alpha] path/to/file.pngUse the much slower but stronger Zopfli compressor with max optimization
oxipng [-z|--zopfli] [-o|--opt] max path/to/file.pngStrip all non-critical metadata chunks
oxipng --strip all path/to/file.png