Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. cd $1
  2. for file in *.png
  3. do
  4. filename="${file%.*}"
  5. mkdir "$filename"
  6. convert "$file" -resize 33% "./$filename/$filename@1x.png"
  7. convert "$file" -resize 66% "./$filename/$filename@2x.png"
  8. cp "$file" "./$filename/$filename@3x.png"
  9. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement