Skip to content

Instantly share code, notes, and snippets.

@abingham
Last active March 4, 2016 09:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abingham/0d9b081f0235f3625a05 to your computer and use it in GitHub Desktop.
Save abingham/0d9b081f0235f3625a05 to your computer and use it in GitHub Desktop.
Recipes for working with Leanpub
for i in *.pdf; do basename="${i%.*}"; sips -s format png -s dpiWidth 300 -s dpiHeight 300 --resampleWidth 1500 ${basename}.pdf --out ${basename}.png; done
sips -s format png -s dpiWidth 300 -s dpiHeight 300 --resampleWidth 1500 FILENAME.pdf --out FILENAME.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment