Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- for num in 20 29 40 60; do
- for mul in 2 3; do
- res=$(($num * $mul))
- convert -resize "${res}x${res}^" -gravity center -extent "${res}x${res}" "$1" "${1%.png}-${res}@${mul}x.png"
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement