Wrong CMYK conversion on linux

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
modad
Posts: 3
Joined: 2015-08-24T23:57:15-07:00
Authentication code: 1151

Wrong CMYK conversion on linux

Post by modad »

Hi there,

we have a system here where user can upload images. To preview them we use ImageMagick (in fact the Java Interface IM4Java) to convert and resize the images. Now we have the Problem that some CMYK Images wont't be resized as expected. Our test with the same image on the windows machine worked fine.

I hope somebody have any ideas.

On Unix ImageMagick is running: ImageMagick-6.4.3.6-7.30.1
Here are the CommandLine Attributes used:
-resize
300x300
-quality
80.0
-colorspace
RGB

Original https://www.dropbox.com/s/qrw1r8lik6kjg ... l.jpg?dl=0
Image

Unix Resize
Image

Windows Resize
Image

Interesting: the windows image preview can handle the unix converted thumb:
Image
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Wrong CMYK conversion on linux

Post by dlemstra »

Your unix version of ImageMagick is ancient. I would suggest you to upgrade to the latest version.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
modad
Posts: 3
Joined: 2015-08-24T23:57:15-07:00
Authentication code: 1151

Re: Wrong CMYK conversion on linux

Post by modad »

You are right.
I will update the unix version and will try again.
modad
Posts: 3
Joined: 2015-08-24T23:57:15-07:00
Authentication code: 1151

Re: Wrong CMYK conversion on linux

Post by modad »

Hi There,

i speak with our server-guys. The problem is that we use Suse 11 and it seems that this old version is the only one which is part of the distribution and they don't want to install any other.

Is there any "portable" Version for Suse which i can just copy to the server to convert images?

Thanks a lot
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Wrong CMYK conversion on linux

Post by fmw42 »

You will have to install from source to do an upgrade, unless you can convince your server people to do it for you in your account only.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Wrong CMYK conversion on linux

Post by fmw42 »

You should do the colorspace change first before resizing. IM works best in (s)RGB.

On my IM 6.9.2.0 Q16 Mac OSX, the following two commands work fine. Your input image has an icc:model: Coated FOGRA27 (ISO 12647-2:2004) CMYK profile imbedded.

Code: Select all

convert original.jpg -colorspace sRGB -resize 300x300 -quality 80 result1.jpg

convert original.jpg -profile /Users/fred/images/profiles/sRGB.icc -resize 300x300 -quality 80 result2.jpg
On your old system, replace -colorspace sRGB with -colorspace RGB in the first command above. But you will get a better result using sRGB profile as in the second (keep it as sRGB.icc). Use your own path to that profile, where ever you have it installed. You may have to install that profile. See http://www.imagemagick.org/download/delegates/ for some of the most used profiles.
Post Reply