Generating PDF thumbnails

Had the need recently to generate a bunch of thumbnails for some PDFs we had. ImageMagick to the rescue.

for P in `ls *.pdf`
  do echo $P
  outfile="thumbs/`echo $P|cut -d . -f 1`.jpg"
  convert -quality 50 -geometry 64x82 $P[0] $outfile
done

The [0] tells it to …

View comments.

more ...