Created
September 15, 2019 00:48
-
-
Save michaelneu/5ddc5b8b9abe810d3350c38d7145840d to your computer and use it in GitHub Desktop.
Converts all PDFs in the current folder to high-res PNGs.
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 | |
for pdf in *.pdf; do | |
png_name="${pdf%.pdf}.png" | |
echo "converting '$pdf' to '$png_name'" | |
convert -density 300 "$pdf" -background white -alpha remove -alpha off "$png_name" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment