Can I convert a PDF file to a 600px high JPEG?

Started by steeld, March 24, 2011, 08:24:18 AM

Previous topic - Next topic

steeld

I have only used exiftool so far to extract information from JPEG files and it has worked exceedingly well. I now have a requirement to convert single-page PDF files to 600px high JPEG images. Since exiftool can read PDF and write JPEG, I guess that it might be able to do this. Is exiftool used as a file converter like this? Should I be looking at some other tool?

Thanks

David

Phil Harvey

Hi David,

ExifTool reads/writes metadata only, so it can be used to convert this information for you, but it does not do image manipulations, so the PDF document itself can not be converted using ExifTool.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Storhaug

With ImageMagick installed execute:

convert -resize 600x600 filename.pdf filename.jpg

If your PDF contains pages in landscape format, then they will have a width of 600px but a lower height.
If you want to have landscape pages with 600px height, execute:

convert -resize x600 filename.pdf filename.jpg

If your PDF has more then one page, one jpg-file for each page will be created.