Imagemagick includes a number of useful tools that allows us to manipulate, edit and get information about image files from command line.
First we have to install the package. In Debian/Ubuntu, do
apt-get install imagemagick
In Red Hat/Centos/Suse, we do
apt-get install imagemagick
…
Read More at Linuxgravity