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:
# yum install imagemagick
# 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...

Go to top