Skip to content

Instantly share code, notes, and snippets.

@BrechtDeMan
Created November 24, 2015 12:35
Show Gist options
  • Save BrechtDeMan/c2acad92744a3a52a1a2 to your computer and use it in GitHub Desktop.
Save BrechtDeMan/c2acad92744a3a52a1a2 to your computer and use it in GitHub Desktop.
Convert PNG files to separate PDFs (install ImageMagick 'sudo brew install imagemagick'/'sudo port install ImageMagick')
#!/usr/bin/env
for f in *.png; do
convert ./"$f" ./pdf/"${f%.png}.pdf"
echo "Converting "$f" to ""${f%.png}.pdf"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment