I’m trying to use ImageMagick to convert some tiffs from the embedded ICC profile to another ICC profile from disk. I’d prefer to use just about any command line program there is other than ImageMagick. But some of the tiffs are 32f which aren’t supported by cctiff. And as far as I can tell LCMS tificc requires that the input profile be included as part of the command (otherwise it defaults to sRGB), and the input tiffs don’t all have the same embedded ICC profile.
This imagemagick command works most of the time:
convert infile.tif -profile /path/to/some-profile.icc outfile.tif
However, for black and white RGB images, where R=G=B everywhere, the above ImageMagick command makes the output tiff grayscale, at which point the actual color space information is completely lost. And then ImageMagick has the nerve to complain that RGB profiles can’t be embedded in grayscale images.
I’ve been searching the internet but so far haven’t found the answer. So I was hoping one of the pixls.us ImageMagick gurus might know how to keep ImageMagick from automatically making grayscale images out of black and white RGB tiffs.