Created
November 24, 2017 09:55
-
-
Save gautiermichelin/15d47b1fc688c045aaa1413caf837233 to your computer and use it in GitHub Desktop.
pdf2png as a simple command, using ghostscript and imagemagick
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
#!/bin/bash | |
PDF=$1 | |
PNG=$2 | |
convert -density 300x300 -units pixelsperinch $PDF -background white -alpha background -alpha off $PNG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment