conversion of cmyk pdf to rgb jpeg

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
nimmrod
Posts: 2
Joined: 2009-02-04T14:19:42-07:00

conversion of cmyk pdf to rgb jpeg

Post by nimmrod »

Having some difficulties trying to create a reasonable output when trying to convert a CMYK pdf to a RGB jpeg. After trying several tips in these forums and on the web, also different commands with ImageMagick, i still cannot get rid of the brightness (almost orange look) to the output RGB image file.

Here are some of the details and commands (versions, colorspaces, optional input commands, etc) i have tried:

ImageMagick 6.4.9 and ImageMagick 6.4.0

convert C:\support\imageTesting\orig\LEV_COUPLE_CAP_E_singlecmyk.pdf -strip -flatten -profile sRGBColorSpaceProfile.icm -colorspace RGB -units PixelsPerInch -density 72x72 -filter Triangle C:\support\imageTesting\preview\Preview_Default.jpg
convert C:\support\imageTesting\orig\LEV_COUPLE_CAP_E_singlecmyk.pdf -strip -flatten -profile sRGB_v4_ICC_preference.icc -colorspace RGB -units PixelsPerInch -density 72x72 -filter Triangle C:\support\imageTesting\preview\Preview_Default.jpg
convert C:\support\imageTesting\orig\LEV_COUPLE_CAP_E_singlecmyk.pdf -strip -flatten -profile sRGB_IEC61966-2-1_withBPC.icc -colorspace RGB -units PixelsPerInch -density 72x72 -filter Triangle C:\support\imageTesting\preview\Preview_Default2.jpg
convert C:\support\imageTesting\orig\LEV_COUPLE_CAP_E_singlecmyk.pdf -strip -flatten -profile sRGB_IEC61966-2-1_noBPC.icc -colorspace RGB -units PixelsPerInch -density 72x72 -filter Triangle C:\support\imageTesting\preview\Preview_Default3.jpg
convert C:\support\imageTesting\orig\LEV_COUPLE_CAP_E_singlecmyk.pdf -strip -flatten -profile ISO22028-2_ROMM-RGB.icc -colorspace RGB -units PixelsPerInch -density 72x72 -filter Triangle C:\support\imageTesting\preview\Preview_Default4.jpg
convert C:\support\imageTesting\orig\LEV_COUPLE_CAP_E_singlecmyk.pdf -profile USWebCoatedSWOP.icc -profile sRGBColorSpaceProfile.icm C:\support\imageTesting\preview\Preview_Default.jpg
convert -density 300 C:\support\imageTesting\orig\LEV_COUPLE_CAP_E_singlecmyk.pdf -strip -flatten -profile sRGBColorSpaceProfile.icm -colorspace RGB -units PixelsPerInch -quality 100 -filter Triangle C:\support\imageTesting\preview\Preview_Default.jpg
convert -colorspace rgb +matte C:\support\imageTesting\orig\LEV_COUPLE_CAP_E_singlecmyk.pdf C:\support\imageTesting\preview\Preview_Default.jpg
convert C:\support\imageTesting\orig\1LEV_COUPLE_CAP_E_singlecmyk.pdf -strip -flatten -profile sRGBColorSpaceProfile.icm -colorspace RGB -units PixelsPerInch -density 72x72 -filter Triangle C:\support\imageTesting\preview\Preview_Default.jpg

Also, here is a link to the original CMYK pdf image file (wish i had a smaller original) along with several of the RGB output image files:

cmyk2rgb


Any help or input on creating a true representation of the original CMYK pdf in a RGB jpeg format would be great!

Thanks.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: conversion of cmyk pdf to rgb jpeg

Post by magick »

Add -colorspace rgb before the PDF filename:
  • convert -density 400 -colorspace rgb cmyk.pdf -resize 25% -quality 92 rgb.jpg
nimmrod
Posts: 2
Joined: 2009-02-04T14:19:42-07:00

Re: conversion of cmyk pdf to rgb jpeg

Post by nimmrod »

I tried running the command with the files i had included in my original post but the output RGB is worse. :( The output is very dark compared to the original. I even tried adding a profile to the command in between the original and the output files with no change.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: conversion of cmyk pdf to rgb jpeg

Post by magick »

The correct command is
  • convert -density 400 C:\support\imageTesting\orig\LEV_COUPLE_CAP_E_singlecmyk.pdf -profile USWebCoatedSWOP.icc -profile sRGBColorSpaceProfile.icm -resize 25% C:\support\imageTesting\preview\Preview_Default.jpg
If that does not give you the colors you are looking for you need to adjust your color profile.

Verify you have LCMS support built in:

identify -list configure

LCMS should be associates with the DELEGATES tag. If not, the profiles will not work properly.
Post Reply