Last active
November 3, 2022 04:30
-
-
Save hurricup/257a2dbef1eefd8832ba4e4cd67e3e72 to your computer and use it in GitHub Desktop.
HowTo: convert multiple pdfs to png from the command line using ImageMagic
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 file in *.pdf; do \ | |
convert \ | |
-density 600 \ | |
-background white \ | |
-alpha remove \ | |
-alpha off \ | |
"${file%%.*}.pdf" \ | |
-resample 200 \ | |
"${file%%.*}_%02d.png";\ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment