How To Install Optipng?
Maintainer: Debian PhotoTools Maintainers
Email: [email protected] .
Website: http://optipng.sourceforge.net/
Section: graphics
Install optipng
-
Debian
apt-get install optipngClick to copy -
Ubuntu
apt-get install optipngClick to copy -
Alpine OS
apk add optipngClick to copy -
Arch Linux
pacman -S optipngClick to copy -
Kali Linux
apt-get install optipngClick to copy -
CentOS
yum install optipngClick to copy -
Fedora
dnf install optipngClick to copy -
Raspbian
apt-get install optipngClick to copy -
macOS
brew install optipngClick to copy
PNG image file optimization utility.
How to use optipng?
Below are few example commands for optipng that you can use in the terminal.
Compress a PNG with default settings:optipng path/to/file.pngClick to copyCompress a PNG with best compression:optipng -o7 path/to/file.pngClick to copyCompress a PNG with fastest compression:optipng -o0 path/to/file.pngClick to copyCompress a PNG and add interlacing:optipng -i 1 path/to/file.pngClick to copyCompress a PNG and preserve all metadata (including file timestamps):optipng -preserve path/to/file.pngClick to copyCompress a PNG and remove all metadata:optipng -strip all path/to/file.pngClick to copy
Install the latest version of optipng in Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS from terminal. To install the optipng just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of optipng from the respository and install it in your computer/server.




