Last active
March 4, 2016 09:25
-
-
Save abingham/0d9b081f0235f3625a05 to your computer and use it in GitHub Desktop.
Recipes for working with Leanpub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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