kohler / gifsicle

Create, manipulate, and optimize GIF images and animations
http://www.lcdf.org/gifsicle/
GNU General Public License v2.0
3.77k stars 239 forks source link

Invalid gif produced from reverse order frames #30

Closed potpath closed 10 years ago

potpath commented 10 years ago

gifsicle commit e5e6c72446 Image from https://en.wikipedia.org/wiki/File:Rotating_fountain_coriolis_effect02.gif Here is the output from: gifsicle tmp.gif "#-1-0" > tmp-reverse.gif

This issue appears in some but not all gif. For example, running the same command to https://commons.wikimedia.org/wiki/File:Pethidine3Dan.gif results in correct gif.

iirelu commented 10 years ago

It's because the gif is optimised. Use gifsicle -U tmp.gif "#-1-0" > tmp-reverse.gif and it will work fine.

potpath commented 10 years ago

It works now. Thanks!