Created
June 6, 2013 11:17
-
-
Save ilyabrin/5720827 to your computer and use it in GitHub Desktop.
Convert *.PDF to *.PNG shell
This file contains hidden or 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 i in $(find /var/www/_convert/all/ ) ; do | |
| pdfname=$(basename "${i}") | |
| outname=$(basename "${i}" .pdf) | |
| convert -verbose -density 150 ${pdfname} -quality 100 -sharpen 0x1.0 -size 723x935 "${outname}.png" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment