problem with rgb and cmyk colorspaces.

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
raouf123
Posts: 1
Joined: 2011-05-03T07:52:37-07:00
Authentication code: 8675308

problem with rgb and cmyk colorspaces.

Post by raouf123 »

Hi,
I am converting PDF to Images. I use -colorspace rgb but it creates a black background for the jpg.
In case I use cmyk, it converts the image with proper background but the jpg is not displayed by I.E. Please help.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: problem with rgb and cmyk colorspaces.

Post by fmw42 »

What is your exact command? What version of IM and platform are you using (presumably Windows?). Can you post a link to your image? I believe this is a common problem with IE, but will defer to others on this as I am not a Windows users. However, if you provide a link to your image, then others can test with it.
User avatar
whugemann
Posts: 289
Joined: 2011-03-28T07:11:31-07:00
Authentication code: 8675308
Location: Münster, Germany 52°N,7.6°E

Re: problem with rgb and cmyk colorspaces.

Post by whugemann »

Provide a link to the PDF. And give information on the versions of Windows, ImageMagick and GhostSrcipt. Tell us the exact command line you are using. Then we might narrow the problem. I have done lots of conversions PDF --> JPG under Windows and rarely met problems. (However, I remember there being a probelm with GhostScript version 9 ...)

Wolfgang Hugemann
Wolfgang Hugemann
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: problem with rgb and cmyk colorspaces.

Post by fmw42 »

I am converting PDF to Images. I use -colorspace rgb but it creates a black background for the jpg.
If you pdf has transparency, then you will get a black background when using jpg for your output as jpg does not support transparency. Other issues may be the ghostscript device you are using. I believe it should be set to pngalpha (for saving transparent png), but am not 100% certain. But this may not allow multipage pdf conversion. This is all guesswork until you provide more information as requested above.
Post Reply