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
Unix Resize
Windows Resize
Interesting: the windows image preview can handle the unix converted thumb:
Wrong CMYK conversion on linux
Re: Wrong CMYK conversion on linux
Your unix version of ImageMagick is ancient. I would suggest you to upgrade to the latest version.
Re: Wrong CMYK conversion on linux
You are right.
I will update the unix version and will try again.
I will update the unix version and will try again.
Re: Wrong CMYK conversion on linux
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
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
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Wrong CMYK conversion on linux
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.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Wrong CMYK conversion on linux
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.
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.
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