Skip to content

Instantly share code, notes, and snippets.

View rickylall's full-sized avatar

Ricky Lall rickylall

View GitHub Profile
@zakirt
zakirt / animated-gif-detect.js
Last active October 6, 2023 08:33
Detecting if GIF file is animated using JavaScript
/**
* @author Zakir Tariverdiev
* @class animatedGifDetect
* @description
* GIF file reader that checks whether GIF image is animated, or not.
* Uses information gathered from the website below:
* http://www.matthewflickinger.com/lab/whatsinagif/bits_and_bytes.asp
*/
(function(window, undefined) {
'use strict';