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