Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- new_name="$(echo "$1"|cut -d\. -f1)"
- convert $1 -crop 320x240+0+0 +repage 1.png
- convert $1 -crop 320x240+320+0 +repage 2.png
- convert $1 -crop 320x240+640+0 +repage 3.png
- convert $1 -crop 320x240+0+240 +repage 4.png
- convert $1 -crop 320x240+320+240 +repage 5.png
- convert $1 -crop 320x240+640+240 +repage 6.png
- convert $1 -crop 320x240+0+480 +repage 7.png
- convert $1 -crop 320x240+320+480 +repage 8.png
- convert $1 -crop 320x240+640+480 +repage 9.png
- convert *.png -delay 100 -loop 0 $new_name.gif
- rm *.png
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement