Bulk PDF Compression with Imagemagick

Just a quick line of code to bulk compress a range of PDFs using imagemagick on a MacOS. This was necessary as some of the graphs I was using for my talks made the PDF files for the presentation incredibly large.

for f in $FILES; do convert -density 300 -depth 8 -quality 85 $f $f.png ; done

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • MisterWong
  • Y!GG
  • Webnews
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Login with Facebook: