Page 1 of 1

Conversion from sRGB to CMYK: difference between JPEG and PDF

Posted: 2019-07-18T16:23:08-07:00
by nathankerstens
Hi all

I have the following source JPEG (in RGB colorspace):
Image

When I convert this image with the following command,

Code: Select all

convert source.jpg -profile "sRGB.icm" -profile "PSOcoated_v3.icc" cmyk.jpg
I get the following result:
Image

When converting it to a pdf, however, I get the following result:
http://pietercampo.be/magick/cmyk.pdf
I used this command:

Code: Select all

convert source.jpg -profile "sRGB.icm" -profile "PSOcoated_v3.icc" cmyk.pdf
The image in cmyk.pdf is in CMYK colorspace:

Code: Select all

pdfimages -list cmyk.pdf 

page   num  type   width height color comp bpc  enc interp  object ID x-ppi y-ppi size ratio
--------------------------------------------------------------------------------------------
   1     0 image    2592  1944  cmyk    4   8  jpeg   no         8  0    72    72 4341K  22%
Why the difference? Is this normal/common? Should the result be the same?

Thanks in advance!

Nathan

Re: Conversion from sRGB to CMYK: difference between JPEG and PDF

Posted: 2019-07-18T16:42:05-07:00
by fmw42
Different profiles have different ranges of color gamuts. So it is not unexpected to see difference.

Re: Conversion from sRGB to CMYK: difference between JPEG and PDF

Posted: 2019-07-18T17:27:22-07:00
by snibgo
@nathankerstens : I can't see any difference. What difference do you see?

As Fred says, a gamut difference in different profiles can change colours slightly, especially if colours are saturated. But I can't see a problem here.

Re: Conversion from sRGB to CMYK: difference between JPEG and PDF

Posted: 2019-07-19T05:47:32-07:00
by nathankerstens
@snibgo: After you saying this, I checked on my phone, and there the difference is indeed very small, if existent at all. On my computer it's rather big. Like you guys said: that's just how it is then?

Re: Conversion from sRGB to CMYK: difference between JPEG and PDF

Posted: 2019-07-19T06:14:06-07:00
by snibgo
What software are you using to view the results? Some software will ignore embedded profiles, perhaps assuming the encoding is some "standard" like sRGB. Some software (such as Firefox) has settings to control this. For PDFs, I view with Adobe Acrobat Reader. I don't know how good that is with profiles.