Skip to content

morrow/gif-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gif Viewer

What This Project Does

This is a tool used for extracting frames from an HTML5 video element and creating a frame-by-frame player in HTML5 Canvas with some extra tools. This is meant to be used for animated charts or other data-driven gifs to allow for frame-by-frame analysis as well as easy-to-use variable playback speeds. Written as a side-project to learn ES6.

How It Works:

Simply, put, it finds a HTML5 video version of the GIF source and extracts frames by playing the videowhile taking snapshots via HTML5 canvas's toDataUrl method. Playback is then performed by looping through the array of images and drawing them back to canvas via the drawImage method.

How to Use it

There are several options:

Example Links

Most of these examples came from /r/dataisbeautiful, which is a great resource for informative data-driven images and videos.

License

MIT License (MIT) Copyright (c) 2015 Terry Morrow

About

HTML5 Canvas + ES6 Animated Gif Viewer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published