Input Animation:
IM 6 (correct):
Code: Select all
bgcolor=`convert oHBWq.gif[0] -format "%[pixel:u.p{0,0}]" info:`
convert -dispose previous -delay 10 -background "$bgcolor" oHBWq.gif -trim -layers TrimBounds -coalesce -layers optimize -loop 0 output6.gif
IM 7 (error):
Code: Select all
bgcolor=`magick oHBWq.gif[0] -format "%[pixel:u.p{0,0}]" info:`
magick -dispose previous -delay 10 -background "$bgcolor" oHBWq.gif -trim -layers TrimBounds -coalesce -layers optimize -loop 0 output7.gif