Wrong sRGB -> CMYK conversion ?

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
idealprod
Posts: 3
Joined: 2016-09-29T02:32:07-07:00
Authentication code: 1151

Wrong sRGB -> CMYK conversion ?

Post by idealprod »

Image

When i'm trying to convert the same image with Photoshop : everything is perfect.

What i do wrong ? ;-)

Thank you.

Best regards,
François
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Wrong sRGB -> CMYK conversion ?

Post by snibgo »

Please upload your test-rgb.jpg to somewhere like dropbox.com and paste the URL here.

Conversions between sRGB and CMYK should generally use profiles. If test-rgb.jpg has an embedded profile, it should certainly be done with profiles.
snibgo's IM pages: im.snibgo.com
idealprod
Posts: 3
Joined: 2016-09-29T02:32:07-07:00
Authentication code: 1151

Re: Wrong sRGB -> CMYK conversion ?

Post by idealprod »

Thank Snibgo for your answer ! ;-)

Here is test-rgb.jpg file :
Image
http://demo.ideal-lab.com/test-rgb.jpg

And i'm trying to apply CMYK profile like that :
convert test-rgb.jpg -colorspace cmyk -profile profil-cmyk.icc test-cmyk.jpg

But the result is them same (bad colors) :(

Thank you for your help.

Best regards,
François
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Wrong sRGB -> CMYK conversion ?

Post by snibgo »

Your command converts the sRGB image to CMYK using simple arithmethic, then assigns a colour profile. The assignment says the image has been encoded with that profile, but that is not true.

Instead, I suggest you assign an sRGB profile, then convert to the CMYK profile.

Code: Select all

convert test-rgb.jpg -profile sRGB.icc -profile USWebCoatedSWOP.icc c.jpg
... but use the appropriate CMYK icc file for your printer.

You might want "-intent Perceptual" or some other setting before the profiles.
snibgo's IM pages: im.snibgo.com
idealprod
Posts: 3
Joined: 2016-09-29T02:32:07-07:00
Authentication code: 1151

Re: Wrong sRGB -> CMYK conversion ?

Post by idealprod »

Thank you so much Snibgo : SRGB -> CMYK conversion is now perfect ! ;-)

Best regards,
François.
Post Reply