Contents[Hide]
The easiest way to convert images to grayscale ( graylevel ) is by using "imagemagick" the image manipulation programs suite. Use the commands below to install imagemagick installed on your Linux system if you have not done so yet:
Fedora/Redhat
# yum install imagemagick
Ubuntu/Debian
# apt-get install imagemagick

1. Convert Image to grayscale

The procedure to convert color to grayscale it simple. Here is our original color image which needs to be converted to grayscale:


now we convert the above image to grayscale:
$ convert linuxcareer-color.png -colorspace gray linuxcareer-color-grayscale.png


Free Linux eBooks

Do you have the right skills?

Our IT Skills Watch page reflects an up to date IT skills demand leaning towards the Linux and Unix environment. We have considered a number of skills and operating systems.

See the result...

Linux Online Training

Learn to run Linux servers and prepare for LPI certification with Linux Academy. 104 available video lessons with PDF course notes with your own server!

Go to top