pngcrush command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
pngcrush: command not found
or when using sudo you get the following error message
sudo: pngcrush: command not found
Solutions to pngcrush: command not found
How To Fix pngcrush: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pngcrush is provided by pngcrush package.
pngcrush is:
Pngcrush is an optimizer for PNG (Portable Network Graphics) files. Its main purpose is to reduce the size of the PNG IDAT data stream by trying various compression levels and PNG filter methods. It also can be used to remove unwanted ancillary chunks, or to add certain chunks including gAMA, tRNS, and textual chunks.
To fix this problem, we can install more using the command below.
sudo apt-get -y install pngcrush
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pngcrush.
sudo apt -y install pngcrush
Or if you have aptitude installed you can use the following command.
sudo aptitude install pngcrush
Summary
In this tutorial we learn how to fix pngcrush command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.