Norod78

Extract first frame from each gif and save as png

Oct 30th, 2022
837
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.13 KB | None | 0 0
  1. mkdir img
  2. list=`ls *.gif`
  3. for img in $list; do
  4. filename="${img}-extracted"
  5. convert "${img}[0]" "img/${filename}_frame-0.png"
  6. done
Advertisement
Add Comment
Please, Sign In to add comment