PDA

View Full Version : [all variants] How to convert all thumbnails to black and white?



simo
February 3rd, 2009, 11:49 AM
Hi, I need some tool that will convert all thumbnails to black and white.
Now i'm trying with convert, but with -monochrome option it's not what i really wanted.
Tnx for your help!

icheyne
February 4th, 2009, 12:26 AM
http://www.imagemagick.org/Usage/color/#grayscale

convert test.png -colorspace Gray gray_colorspace.png

simo
February 4th, 2009, 03:56 AM
Tnx!

Now I need to figure out how to convert 17k+ images to grayscale with keeping filenames.(without creating new one)

kaibob
February 4th, 2009, 04:16 AM
Tnx!

Now I need to figure out how to convert 17k+ images to grayscale with keeping filenames.(without creating new one)
You need to explain a bit more what you want to do. For example, do you want to:

* Overwrite the existing files.

* Put the new files in a different directory than the existing files.

* Keep both the existing and new files in the same directory and retain the existing file names. In this case, the new file names will have to be changed in some way.

simo
February 4th, 2009, 07:02 PM
I need to overwrite existing files(thumbnails) so thumbnails will show in greyscale instead of colored ones...

icheyne
February 4th, 2009, 11:22 PM
I haven't tested this, but it should work:


mogrify -type Grayscale *.jpg

simo
February 4th, 2009, 11:35 PM
Cool!

Thank you! It works!