Batch converting pdf to jpg

Doesn’t unix make you feel inadequate sometimes.   I’ve been fiddling with bash
scripts to convert pdfs into jpgs.   Many of the pdfs have been generated by using the burst command from pdft.

Having spent a few happy hours fiddling with the scripts (and nearly getting there), google locates a much better script.   It seems to work.   All I need to do now is figure out how!

for i in *.pdf; do echo $i
 convert -quality 100 $i `echo $i | sed -e 's/\.pdf/-%d\.jpg/g'`

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s