Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -e
- echo "=== Converting WEBP-> GIF ==="
- for f in *.webp; do
- [ -e "$f" ] || continue
- convert "$f" "${f%.webp}.gif"
- done
- mkdir -p gif
- mv *.gif gif/
- cd gif/
- for f in *.gif; do
- [ -e "$f" ] || continue
- base="${f%.gif}"
- mkdir -p "frames_${base}"
- convert "$f" "frames_${base}/frame_%03d.png"
- done
- mkdir -p output
- for d in frames_*; do
- [ -d "$d" ] || continue
- base="${d#frames_}"
- echo " -> output/${base}.png"
- convert "$d"/*.png +append "output/${base}.png"
- done
- echo "=== DONE ==="
- echo "Storyboards are in: gif/output/"
Advertisement
Add Comment
Please, Sign In to add comment