Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cd $1
- for file in *.png
- do
- filename="${file%.*}"
- mkdir "$filename"
- convert "$file" -resize 33% "./$filename/$filename@1x.png"
- convert "$file" -resize 66% "./$filename/$filename@2x.png"
- cp "$file" "./$filename/$filename@3x.png"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement