Skip to content

Instantly share code, notes, and snippets.

@yradunchev
Last active December 17, 2015 14:59
Show Gist options
  • Select an option

  • Save yradunchev/5628002 to your computer and use it in GitHub Desktop.

Select an option

Save yradunchev/5628002 to your computer and use it in GitHub Desktop.
Convert multi-page pdf to jpeg 1. Save this to file.sh and 'chmod +x file.sh' 2. Run as ./file.sh ./path/to/your.pdf
#!/bin/bash
PDF=$1
convert ${PDF} pages.png
convert pages-* -append ${PDF}.jpg
rm pages-*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment