Converting TIFF to Grayscale results in sRGB colorspace

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
dschroeder
Posts: 6
Joined: 2013-01-08T04:42:06-07:00
Authentication code: 6789

Converting TIFF to Grayscale results in sRGB colorspace

Post by dschroeder »

Hey there,

I am trying to convert a TIFF image to "colorspace Gray" with the following command:

Code: Select all

$ convert -compress none -depth 8 -colorspace Gray input.tif +profile icc,icm output.tif
After analysing the colorspace afterwards with:

Code: Select all

$ identify -format "%[colorspace]" output.tif
Identify tells me, that the resulting TIFF is in sRGB colorspace. It seems that ImageMagick can not save TIFF files in Gray colorspace. I need this uncompressed 8-bit TIFF because it will be embedded into a CMYK PDF preserving the paths defined in the TIFF.
I use ImageMagick 6.7.6-10.

Is there any way to produce TIFF files in Gray colorspace?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Converting TIFF to Grayscale results in sRGB colorspace

Post by snibgo »

Your version of IM is about the time that IM started getting colorspaces correct. Your conversion works in 6.7.9. I suggest you upgrade.
snibgo's IM pages: im.snibgo.com
dschroeder
Posts: 6
Joined: 2013-01-08T04:42:06-07:00
Authentication code: 6789

Re: Converting TIFF to Grayscale results in sRGB colorspace

Post by dschroeder »

Thank you for your reply. I will retry the work flow after the upgrade.
Post Reply