mayoff / uiimage-from-animated-gif

A UIImage category that loads animated GIFs
Creative Commons Zero v1.0 Universal
877 stars 164 forks source link

Correct delays for each frame #1

Closed diegopeinador closed 11 years ago

diegopeinador commented 11 years ago

Use correct delays for each frame, also total duration is defined by the GIF itself.

mayoff commented 11 years ago

Thanks for the pull request. Although I didn't end up using your implementation, I did use a variant of your idea of replicating frames. My version takes advantage of the fact that frame durations in an animated GIF are always integer multiples of a centisecond.