JavaScript API for decoding/parsing information from animated GIFs using ArrayBuffers.
JavaScript API for decoding/parsing information from animated GIFs using ArrayBuffers.
Once I saw vinepeek, I immediately wanted to build a similar site for animated GIFs. The only problem was, there was no way to quickly determine the duration of an animated GIF, which varies in different browsers. Thus, gify was born over a weekend.
gify requires jDataView for reading binary files. Please pull the latest from their repository.
0
represents infitine. -1
represents display once.{
"valid": true,
"globalPalette": true,
"globalPaletteSize": 256,
"globalPaletteColorsRGB": [
{
"r": 50,
"g": 82,
"b": 120
},
{
"r": 89,
"g": 105,
"b": 119
},
{
"r": 4,
"g": 33,
"b": 71
}
],
"loopCount": 0,
"height": 1610,
"width": 899,
"animated": true,
"images": [
{
"identifier": "0",
"localPalette": false,
"localPaletteSize": 0,
"interlace": false,
"comments": [],
"text": "",
"left": 0,
"top": 0,
"width": 1610,
"height": 899,
"delay": 350,
"disposal": 0
},
{
"identifier": "1",
"localPalette": true,
"localPaletteSize": 256,
"interlace": false,
"comments": [],
"text": "",
"left": 0,
"top": 0,
"width": 1610,
"height": 899,
"delay": 350,
"disposal": 0
},
{
"identifier": "2",
"localPalette": true,
"localPaletteSize": 256,
"interlace": false,
"comments": [],
"text": "",
"left": 0,
"top": 0,
"width": 1610,
"height": 899,
"delay": 350,
"disposal": 0
},
{
"identifier": "3",
"localPalette": true,
"localPaletteSize": 256,
"interlace": false,
"comments": [],
"text": "",
"left": 0,
"top": 0,
"width": 1610,
"height": 899,
"delay": 350,
"disposal": 0
}
],
"isBrowserDuration": false,
"duration": 2800,
"durationIE": 2800,
"durationSafari": 2800,
"durationFirefox": 2800,
"durationChrome": 2800,
"durationOpera": 2800
}