Page 1 of 1

issue of convert pdf to jpg

Posted: 2009-07-14T12:02:53-07:00
by pinktriangle
Hi all

i am new to imagemagick and ghostscript

i am using imagemagick 6.5.4 and ghostscript 8.64 to convert the pdf to jpg and everything looks fine.

convert -density 150 -quality 85% -colorspace cmyk -type truecolor pdf jpg

the only probelm is there is image and text in the orginal pdf file. in the converted jpg file, the image is too large and cover the text.

does anyone can help me to fix this problem. Thanks a lot

Re: issue of convert pdf to jpg

Posted: 2009-07-17T18:34:09-07:00
by anthony
Try a different density. Does the image vs text size change with density. Report the results here, good or bad .

It may be that the PDF is playing with density parameters internally, and that is stuffing up your results. PDF and postscript are actually highly specialized computer programs in and of themselves, and this can cause them to exhibit odd behaviour, depending on what program generated it.

IM itself only gets the image that is returned by the ghostscript programming delegate, and has no real control over PDF to raster image conversion. Once the image is in a raster (pixel grid) form it handles the conversion to a normal image file format like JPG.