bug: mogrify -colorspace Gray *.tif (or *.bmp, etc.)
Posted: 2007-09-07T12:34:17-07:00
I am new to ImageMagick and command line prompts, but have picked up on Mogrify quickly, and love it. I'm not sure how to check the version number (I downloaded it last week), but the installation file I downloaded is named 6.3.5-6-Q8-windows-dll. (My Windows version is XP, Home Edition 2002, Service Pack 2.) Various commands I've tried work great, EXCEPT:
mogrify -colorspace Gray *.tif
When executing this command, I can actually SEE the thumbnail of the photo (in a viewer in Windows) quickly "blink" (disappear and reappear), so I know the computer THINKS it's doing the command. However, the image remains exactly the same (i.e., RGB color); no changes.
To troubleshoot, I did the same command on the same photos on a Unix system where I have an account. Works just fine. (I don't know what version of the program is on that system.)
After converting all of the images to grayscale on the Unix system, and then bringing them all back to my Windows machine, I noticed: They had all been changed from 333dpi/1-inch-wide to 72dpi/5-inches-wide (thus, no loss in quality, I don't think). (Thus, I had to resample and resize them. Note: these Mogrify commands work just fine on my Windows machine.)
This made me wonder if the -colorspace Gray command requires a 72 dpi image. So I tried the command on 72 dpi bitmap images: mogrify -colorspace Gray *.bmp. No luck. Same result: the computer acts like its doing the command (requires time to do it, etc.), and I receive no error message. BUT the images are exactly the same as before executing the command (in this case, bitmap color).
By the way, I have also tried various capitalizations of "Gray" (gray, GRAY, Gray). Also, although my filenames do have spaces in them, still, this did not hamper any of the other commands (-format, -resample, -resize, -modulate, -shave, +contrast, etc.).
Please do let me know if it seems like a real bug (or not). Hope you can help.
Perhaps related: I tried -colorspace CMYK just to see what would happen. When checking the image in Photoshop, it seemed like I was given only one plate (not all four). I'm not sure about this (I don't know the ins and outs of 4-color processing in Photoshop), but you might check CMYK as well, just in case.
Thanks, Frank B.
mogrify -colorspace Gray *.tif
When executing this command, I can actually SEE the thumbnail of the photo (in a viewer in Windows) quickly "blink" (disappear and reappear), so I know the computer THINKS it's doing the command. However, the image remains exactly the same (i.e., RGB color); no changes.
To troubleshoot, I did the same command on the same photos on a Unix system where I have an account. Works just fine. (I don't know what version of the program is on that system.)
After converting all of the images to grayscale on the Unix system, and then bringing them all back to my Windows machine, I noticed: They had all been changed from 333dpi/1-inch-wide to 72dpi/5-inches-wide (thus, no loss in quality, I don't think). (Thus, I had to resample and resize them. Note: these Mogrify commands work just fine on my Windows machine.)
This made me wonder if the -colorspace Gray command requires a 72 dpi image. So I tried the command on 72 dpi bitmap images: mogrify -colorspace Gray *.bmp. No luck. Same result: the computer acts like its doing the command (requires time to do it, etc.), and I receive no error message. BUT the images are exactly the same as before executing the command (in this case, bitmap color).
By the way, I have also tried various capitalizations of "Gray" (gray, GRAY, Gray). Also, although my filenames do have spaces in them, still, this did not hamper any of the other commands (-format, -resample, -resize, -modulate, -shave, +contrast, etc.).
Please do let me know if it seems like a real bug (or not). Hope you can help.
Perhaps related: I tried -colorspace CMYK just to see what would happen. When checking the image in Photoshop, it seemed like I was given only one plate (not all four). I'm not sure about this (I don't know the ins and outs of 4-color processing in Photoshop), but you might check CMYK as well, just in case.
Thanks, Frank B.