lost color space conversion in JPEG => TIFF

Markus Dahms <[email protected]> Thu, 26 May 2011 15:11:42 +0200
Newsgroups gmane.comp.video.image-magick.bugs
Organization Programmfabrik GmbH
Message-ID <20110526151142.0ad0ac82@milhouse>
Hi there,

taken a RGB JPEG image "in.jpg" the following chain produces wrong
colors in "out.jpg":

convert in.jpg -colorspace CMYK tif:- \
| convert - -colorspace RGB out.jpg

This one works on the other hand:

convert in.jpg -colorspace CMYK -compress none tif:- \
| convert - -colorspace RGB out.jpg

The input (JPEG) & intermediate format (TIFF) is important, I guess
there is a shortcut for JPEG compression in TIFF which is used but loses
information.

Version: ImageMagick 6.6.9-6 2011-04-29 Q16

Markus