Image shade changes while converting a tiff to jpg with RGB colorspace

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
rajivrp
Posts: 7
Joined: 2017-05-25T23:37:23-07:00
Authentication code: 1151

Image shade changes while converting a tiff to jpg with RGB colorspace

Post by rajivrp »

Hi,

When I convert attached tiff file to jpg mentioning color-space as RGB, its shade changes from brownish to greenish. It produces expected output when we don't pass color-space or keep it 'CMYK', source file is of CMYK type but I am looking for an RGB output.

Command :

convert.exe "Sample.tif" "Output_Default.jpg"
convert.exe "Sample.tif" -colorspace RGB "Output_RGB.jpg"
convert.exe "Sample.tif" -colorspace CMYK "Output_CMYK.jpg"

ImageMagick version: I am using 6.9.2.6 (but it's reproducible with latest version 6.9.9-50 as well)
Environment (Operating system, version and so on): Windows 7, Windows Server 2012

https://drive.google.com/open?id=1fpWkC ... YqAMCtZuLF

Thanks
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Image shade changes while converting a tiff to jpg with RGB colorspace

Post by snibgo »

"RGB" means linear RGB. I guess you really want "sRGB" (which is non-linear).
snibgo's IM pages: im.snibgo.com
rajivrp
Posts: 7
Joined: 2017-05-25T23:37:23-07:00
Authentication code: 1151

Re: Image shade changes while converting a tiff to jpg with RGB colorspace

Post by rajivrp »

Thanks @snibgo for reply ... but sRGB is producing same output as RGB for this file.

I understand RGB is linear but technically don't you think it's a bug ? Even though source file is CMYK isn't ImageMagick supposed to retain original colors while converting it to JPG with RGB colorspace ? I thought that was a valid expectation, and here there is a big difference in the shade, it's not even close.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Image shade changes while converting a tiff to jpg with RGB colorspace

Post by fmw42 »

-colorspace sRGB works fine for me with your image on IM 6.9.9.50 Q16 Mac OSX. The result is quite different from -colorspace RGB.

Nevertheless, you would get better results converting using profiles.
Post Reply