Page 1 of 1

issue of converting pdf to jpg

Posted: 2009-07-14T12:08:01-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 converting pdf to jpg

Posted: 2009-07-14T12:44:26-07:00
by fmw42
is your pdf in cmyk or are you trying to create a cmyk jpg? are you trying to make the jpg with 150 dpi?

your syntax may be wrong? see http://www.imagemagick.org/Usage/basics/#why

most of the time you use

convert input.pdf options output.jpg

with cmyk pdfs, you may have change colorspace to rgb, so

convert -colorspace rgb input.pdf options output.jpg

which is done when reading in the input, so the -colorspace comes first.


You might post a link to your image so others can view it and test with it.

see also http://www.imagemagick.org/Usage/formats/#pdf

Re: issue of converting pdf to jpg

Posted: 2009-07-14T13:12:46-07:00
by pinktriangle
Hi fmw42

thanks a lot for your reply

actully i use this command

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

and created the jpg file and looks fine

the only problem is

there is text and image in the pdf file and

the image in the converted jpg is larger than the image in the pdf and conver the text.

i can send the pdf to u if you give me ur email address

Thanks a lot

Re: issue of converting pdf to jpg

Posted: 2009-07-14T15:09:40-07:00
by fmw42
if you cannot post a link to your file, then send to fmw at alink dot net

Re: issue of converting pdf to jpg

Posted: 2009-07-15T08:25:57-07:00
by pinktriangle
hi fmw42

i fix this problem.

this pdf is originally created in Illustrator and was saved as a Acrobat
5 version PDF.

again, Thanks a lot for your help