Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- SUFF=bmp
- SUFF=???
- suff1=png
- suff2=pdf
- newDir=size-$1
- mkdir $newDir
- for i in $(ls *.$SUFF)
- do
- echo $i
- echo $newDir/${i%.$SUFF}.jpg
- convert $i -geometry $1x$1 $newDir/${i%.$SUFF}.jpg
- done ### This could be condensed into a "one-liner" if desired.
- # inkscape $i --export-png=png/${i%.$SUFF}.png -w1024
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement