Page 1 of 1

problem with rgb and cmyk colorspaces.

Posted: 2011-05-03T07:59:48-07:00
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.

Re: problem with rgb and cmyk colorspaces.

Posted: 2011-05-03T10:27:46-07:00
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.

Re: problem with rgb and cmyk colorspaces.

Posted: 2011-05-03T14:34:01-07:00
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

Re: problem with rgb and cmyk colorspaces.

Posted: 2011-05-03T16:41:02-07:00
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.