Page 1 of 1

Wrong CMYK conversion on linux

Posted: 2015-08-25T00:21:02-07:00
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

Re: Wrong CMYK conversion on linux

Posted: 2015-08-25T00:32:58-07:00
by dlemstra
Your unix version of ImageMagick is ancient. I would suggest you to upgrade to the latest version.

Re: Wrong CMYK conversion on linux

Posted: 2015-08-25T00:39:10-07:00
by modad
You are right.
I will update the unix version and will try again.

Re: Wrong CMYK conversion on linux

Posted: 2015-08-31T23:57:59-07:00
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

Re: Wrong CMYK conversion on linux

Posted: 2015-09-01T00:00:00-07:00
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.

Re: Wrong CMYK conversion on linux

Posted: 2015-09-01T00:10:05-07:00
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.