CMYK to RGB conversion broken in 6.3.3

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
t.hoepfner
Posts: 18
Joined: 2006-12-18T14:41:21-07:00

CMYK to RGB conversion broken in 6.3.3

Post by t.hoepfner »

Hi,

It seems, that CMYK to RGB conversion is broken in 6.3.3. I'm on MacOS X and use the MacPorts (ex DarwinPorts) version of ImageMagick. I've put some images showing my problem here:

Input
Output with 6.3.2 (OK)
Output with 6.3.3 (broken)

Here's what I did to create the images:

Code: Select all

# Test 6.3.2

[mbp:~/Downloads/IM] th% convert -version
Version: ImageMagick 6.3.2 02/16/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC

[mbp:~/Downloads/IM] th% convert +profile "*" -colorspace RGB in.jpg out632.jpg

# Test 6.3.3

[mbp:~/Downloads/IM] th% convert -version
Version: ImageMagick 6.3.3 05/04/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC

[mbp:~/Downloads/IM] th% convert +profile "*" -colorspace RGB in.jpg out633.jpg
Is it a bug or is there some different default behaviour in 6.3.3 which I do have to respect in some way?

Thanks for your help,
Timo
Last edited by t.hoepfner on 2007-05-24T10:11:40-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: CMYK to RGB conversion broken in 6.3.3

Post by magick »

Your links return 404.
t.hoepfner
Posts: 18
Joined: 2006-12-18T14:41:21-07:00

Re: CMYK to RGB conversion broken in 6.3.3

Post by t.hoepfner »

I corrected the URLs in the original message. Sorry for that.

Timo
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: CMYK to RGB conversion broken in 6.3.3

Post by magick »

We can reproduce the problem and will have a fix in ImageMagick 6.3.4-3 Beta within a day or two. In the mean-time this is the proper way to convert the image and it works with ImageMagick 6.3.3:
  • convert cmyk.jpg -profile rgb.icc rgb.jpg
t.hoepfner
Posts: 18
Joined: 2006-12-18T14:41:21-07:00

Re: CMYK to RGB conversion broken in 6.3.3

Post by t.hoepfner »

That sounds great. Thanks a lot.

Will it then be available in /pub/ImageMagick/beta on the FTP server or only in SVN?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: CMYK to RGB conversion broken in 6.3.3

Post by magick »

6.3.4-3 Beta is available now in the beta folder of the FTP site and its available from SVN now.
t.hoepfner
Posts: 18
Joined: 2006-12-18T14:41:21-07:00

Re: CMYK to RGB conversion broken in 6.3.3

Post by t.hoepfner »

Just compiled a new version and did the test again. Works perfectly.

Thanks a lot for the super fast resolution of this problem.

Timo
NickKuh

Re: CMYK to RGB conversion broken in 6.3.3

Post by NickKuh »

I've found the same problem. I'm trying to update ImageMagick to 6.3.4-3 - is this possible using Darwin Ports? What would the command line be?

Thanks!

Nick
t.hoepfner
Posts: 18
Joined: 2006-12-18T14:41:21-07:00

Re: CMYK to RGB conversion broken in 6.3.3

Post by t.hoepfner »

Yes, there is a more recent version of ImageMagick available in DarwinPorts (now called MacPorts). You have to force MacPorts to update its package descriptions. In Terminal execute:

Code: Select all

sudo port selfupdate
to be sure execute it twice.

then do a

Code: Select all

sudo port search ImageMagick
which today returns

Code: Select all

ImageMagick                    graphics/ImageMagick 6.3.5-6      Tools and libraries to manipulate images in many formats
If you want to update to that version, then type

Code: Select all

sudo port upgrade ImageMagick
and wait until it's finished.

BTW: Ghostscript was also recently changed:

Code: Select all

sudo port search ghostscript
ghostscript                    print/ghostscript 8.60         GPL Ghostscript, An interpreter for PostScript and PDF
ghostscript-fonts-hiragino     print/ghostscript-fonts-hiragino 8.60         Japanese Hiragino fonts for ghostscript 8.60
I don't know if it will update that automatically with ImageMagick.

Timo
NickKuh

Re: CMYK to RGB conversion broken in 6.3.3

Post by NickKuh »

Superb! Problem solved!

Thank you very much!

Nick
NickKuh

Re: CMYK to RGB conversion broken in 6.3.3

Post by NickKuh »

Further to my previous mail I've tried to update ImageMagick on my live Linux server (OS X is my offline test environment) to correct the same problem. I downloaded ImageMagick-6.3.5-7.tar.gz and then extracted it's contents to my home directory. I then ran ./configure followed by a make install as sudo.

When I check the installed version:

convert -version

I get :

Version: ImageMagick 6.3.5 09/03/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC

However, the original problem (CMYK > RGB conversion) is still not resolved on the Linux version.

Here's the file I've been testing/having problems with:

http://www.editioninteractive.net/imagemagick/start.tif

Am I doing something wrong with the install?
NickKuh

Re: CMYK to RGB conversion broken in 6.3.3

Post by NickKuh »

I should also add that when I convert via OS X I get no error and when I convert via the Linux installation I get 2 errors:

Code: Select all

convert /home/edition/dev.goodprint.co.uk/export-test/start.tif -colorspace RGB -resample 300 /home/edition/dev.goodprint.co.uk/export-test/end2.png
convert: unknown field with tag 700 (0x2bc) ignored. `/home/edition/dev.goodprint.co.uk/export-test/start.tif'.
convert: unknown field with tag 34665 (0x8769) ignored. `/home/edition/dev.goodprint.co.uk/export-test/start.tif'.
Post Reply