Convert function - question

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
tamtam
Posts: 6
Joined: 2011-02-02T06:34:32-07:00
Authentication code: 8675308

Convert function - question

Post 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!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert function - question

Post 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
Post Reply