Page 1 of 1

Convert function - question

Posted: 2011-02-22T16:24:49-07:00
by tamtam
Hello,

If I convert pdf file to jpg - How do the dimensions (width and height) set (without special options like -resize) ?
By which properties of the pdf file?

(code for example : convert test.pdf test.jpg)


Thanks!

Re: Convert function - question

Posted: 2011-02-22T19:16:50-07:00
by fmw42
You need to read in the pdf with -density. That controls the size of the output. PDF does not have any real size as it is vector format. Nominal size is 72 dpi.

convert -density xxx image.pdf image.jpg

or you can supersample

convert -density 288 image.pdf -resize 25% image.jpg