Colour not working on pdf conversion

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
thisismyname

Colour not working on pdf conversion

Post by thisismyname »

I'm trying to convert a pdf, by ghostscript, to a png (via php), using the code

Code: Select all

exec("convert \"{$pdf}[0]\" -colorspace rgb \"output.png\"");
The pdf is converting but it is about half it's original size, so the text is blurry, and the image comes out as black and white instead of colour.

Any idea why this might be?

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

Re: Colour not working on pdf conversion

Post by fmw42 »

try putting -colorspace rgb before the input
Post Reply