This Chrome extension bundles SuperGIF class from libgif-js and brings basic play controls for animated gifs into your browser.
Main purpose of this extension is to improve user experience when watching long animated gifs in a browser. Typical user is someone who watches screen capture converted into animated gif and wishes to pause the animation to focus on some detail on currently captured screen. This rather trivial task is not really straightforward as there are no pause/resume controls built-in. This extension adds "SuperGIF" context menu to GIF images on the currently visited site. When triggered, image is parsed into individual frames and replaced with canvas that plays the animation frame by frame. User can then pause/resume or seek by clicking on the canvas. For a simple example, install the extension and test it on this animated gif: https://github.com/buzzfeed/libgif-js/blob/master/example_gifs/rub_test.gif . Under the hood this extension bundles SuperGIF class from libgif-js project and adds little bit of custom logic to registered event handlers.
- (2022-05-27) Juan: Works really well. The one annoying thing is that every time we load a page, we have to manually click on each GIF image and wait a few seconds until it becomes playable. To make this perfect: 1. run the script automatically over every GIF that is loaded in a webpage. 2. cache the playable results (not by default, but give the option per webpage), so that we don't need to re-run the script every time we come across the same page. Ps: The reason I'm suggesting this is that there is this documentation website that has tons of GIFs and I need to revisit it constantly, and not only I have to pause the GIFs to see what's going on, but also the many GIFs playing all the time are very distracting when you're trying to read the web page, so it's nice to pause them.