Once again, but different?: RGB to CMYK conversion

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
coruscant

Once again, but different?: RGB to CMYK conversion

Post by coruscant »

Hello All,

I already have read several hundred posts on different websites regarding the conversion of a jpg photo from RGB to CMYK colorspace with ImageMagick.

The most common way (if I count the suggestions in various posts) to do this is:
convert original.jpg +profile icc -profile AdobeRGB1998.icc -profile USWebCoatedSWOP.icc -strip converted.jpg
Explanation:
+profile icc: removes icc profiles form the file if there are any
-profile AdobeRGB1998.icc: use this icc profile for the source file ("original.jpg")
-profile USWebCoatedSWOP.icc: use this profile for the destination file ("converted.jpg")
-strip: do not include profile in the destination file to keep file size reasonable

The result in terms of colors is more than sufficient. I like the way it is done. But here comes my problem: The overall quality (beside the colors - they are o.k.) of the image becomes really horrible.

Look at these files:
http://www.casamexico.at/test/original.jpg
http://www.casamexico.at/test/converted.jpg

The original one was exact, the converted is just a mess. Does anybody know why is this and how to prevent this?
My ImageMagick Version: ImageMagick-6.2.8.0-4.el5_1.1

Thanks in advance,
Coruscant.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Once again, but different?: RGB to CMYK conversion

Post by anthony »

set a higher -quality setting -quality 90 for example.

Im defaults to a quality of 75.


WARNING: reading and saving JPEG will always cause some loss of quality. JPG is a file format designed for the 'final display image' it should not be used as intermediate images if it can be helped.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply