Monday, June 1, 2009

ImageMagick Conversion

One great thing about Linux is that you can find efficient command line tools for just about anything. Currently I've been using ImageMagick's convert command line tool to convert all the pages in a PDF to separate images of just about any format. It's great and takes almost no time.

convert -quality 90 -resize 800x600 -density 300x300 Fxad_DragDrop.pdf Fxad_DragDrop.png

Note, the density parameter is important. Adding "-density 300x300" significantly improved image quality, while adding "-density 600x600" consumed my machine's processor until I killed the process.

No comments:

Post a Comment