[magick-users] convert pdf to png with given width and dpi
Anthony Thyssen
anthony at griffith.edu.au
Sun Jul 22 16:33:40 PDT 2007
Jan Torben Heuer on wrote...
| Hi,
|
| I'd like to convert several pdf's (vector images) to png with width=5cm and
| dpi=600. Is that possible?
|
| $ convert pic1.pdf pic.png
|
| works fine - but I have no clue how to define the parameters
|
You will need to know how big a 5cm image is a 600 dpi.
600 pixels per inch at roughly 2.56 cm per inch times 5 cm
=> 600 / 2.56 * 5 => 1172 pixels wide...
You will need to have a big enough initial density when reading to
produce at least 1200 pixel wide image (first -density)
convert -density 600x600 pic1.pdf -resize 1172x \
-density 600x600 pic.png
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
The difference between men and boys, is the price of their toys!
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list