Extracting single frames from an animated GIF to canvas

后端 未结 3 1980
逝去的感伤
逝去的感伤 2020-12-03 17:25

I need to load all the frames of an animated GIF to an HTML5 canvas.

Please note, I don\'t want to \"play\" the animated (someone asked this before), all I want is t

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 18:23

    Take a look at jsgif; it downloads a GIF, parses it, and draws the individual frames of the file to a . With a bit of digging you should be able to find the code that draws the individual frames and work from there.

提交回复
热议问题