issue of convert pdf to jpg

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
pinktriangle

issue of convert pdf to jpg

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: issue of convert pdf to jpg

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply