optipng command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
optipng: command not found
or when using sudo you get the following error message
sudo: optipng: command not found
Solutions to optipng: command not found
How To Fix optipng: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu optipng is provided by optipng package.
optipng is:
OptiPNG is a PNG optimizer that recompresses the image files to a smaller size. It losslessly reduces the bit depth, the color type and the color palette of the image, runs a suite of compression methods and strategies, and selects the compression parameters that yield the smallest output file. It also recognizes several external file formats like BMP, GIF, TIFF and PNM (PBM, PGM, PPM).
To fix this problem, we can install more using the command below.
sudo apt-get -y install optipng
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install optipng.
sudo apt -y install optipng
Or if you have aptitude installed you can use the following command.
sudo aptitude install optipng
Summary
In this tutorial we learn how to fix optipng command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.