Advertisement
druznek

Untitled

Mar 10th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. #!/bin/bash
  2. for num in 20 29 40 60; do
  3.     for mul in 2 3; do
  4.     res=$(($num * $mul))
  5.     convert -resize "${res}x${res}^" -gravity center -extent "${res}x${res}" "$1" "${1%.png}-${res}@${mul}x.png"
  6.     done
  7. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement