Page 1 of 1

Colour not working on pdf conversion

Posted: 2009-07-01T03:03:21-07:00
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

Re: Colour not working on pdf conversion

Posted: 2009-07-01T10:45:56-07:00
by fmw42
try putting -colorspace rgb before the input