PDF to JPG Color management

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
omman95

PDF to JPG Color management

Post by omman95 »

Hello, I have to do to convert a PDF file to jpg.

My PDF is for print, it's a 300Dpi and CMYK.

I show you the result when I open this PDF in Photoshop. I open, take the colorspace to RVB, take the size to 72Dpi and I save as a jpeg quality 12.
Image
Photoshop use this :
* RGB : sRGB IEC61966-2.1
* CMYK Coated FOGRA27 (Iso 12647-2:2004)

Now I do this request :

Code: Select all

exec("/usr/bin/convert  convert  -verbose -colorspace RGB -resize 800 -interlace none -density 300 -quality 100  ARCHIVE/test.pdf[0]  test.jpg"); 
And result :
Image

I test this request :

Code: Select all

exec("/usr/bin/convert  convert  -verbose -colorspace CMYK -resize 800 -interlace none -density 300 -quality 100  ARCHIVE/test.pdf[0]  test.jpg"); 
And result :
Image


What param could be use to look like at my first Jpg?
I have to use -profil (icc) ?
I haven't a folder color in /usr/share. I have to add this folder and the profiles?

Thank a lot for your help
omman95

Re: PDF to JPG Color management

Post by omman95 »

Up...
Post Reply