Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ -z "$1" ] || [ -z "$3" ] || [ -z "$3" ]
- then
- echo "Syntax: svg2png <source.svg> <dest.png> <16x16> [<negate>]"
- else
- if [ -z "$4" ]
- then
- convert -background none -resize $3 -gravity center -extent $3 $1 $2
- else
- convert -background none -resize $3 -gravity center -negate -extent $3 $1 $2
- fi
- fi
Add Comment
Please, Sign In to add comment