Mogrify: Converting tiff to grayscale

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
netcreep

Mogrify: Converting tiff to grayscale

Post by netcreep » 2006-03-10T07:50:15-07:00

I can't understand why

Code: Select all

mogrify -verbose -colorspace gray -resize "2130x2400>" -density "300x300" -strip -compress "LZW" *.tif
doesn't leave me with a directory of only grayscale .tifs. The resizing works fine.

I've had this problem for a while now, meaning with all of the recent 8-bit windows-releases I tried it with, so it must be a mistake of mine.

Can anyone help me to mogrify my files to grayscale?

Greetings,
Oliver

netcreep

I found it out! (took me quite a while though...)

Post by netcreep » 2006-07-20T05:25:05-07:00

Code: Select all

mogrify -type Grayscale test.tif

User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony » 2006-07-20T18:06:57-07:00

That should work. However I think the difference between -type and colorspace is currently very confusing. neither is a proper operator in IM.
They are hold over from the IM version 5 days and probably needs some bug fixing to properly define them.

I am currently hitting simular problems in IM examples where I had to force
images into greyscape using a slow -fx intensity, as using -colorspace stuffs up later operations.

As such I would say some bug fixing is needed in this area by someone who knows what is going on internally in IM.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/

Post Reply