Skip to content

Repository files navigation

@chi_eee/gif-decoder

https://github.com/HuuChiHuynh/Gif-Decoder/actionsinstall sizeDownloads

Install

npm i @chi_eee/gif-decoder

https://www.npmjs.com/package/@chi_eee/gif-decoder

Usage

Javascript:

const{ Decoder }=require('@chi_eee/gif-decoder')const{ readFileSync }=require('fs')constgif=Decoder.decodePath('sample.gif')constgif=Decoder.decodeBuffer(readFileSync('sample.gif'))

Typescript:

import{Decoder}from'@chi_eee/gif-decoder'import{readFileSync}from'fs'constgif=Decoder.decodePath('sample.gif')constgif=Decoder.decodeBuffer(readFileSync('sample.gif'))

Credits

Spec: https://www.w3.org/Graphics/GIF/spec-gif89a.txt

Interlace Function: https://github.com/matt-way/gifuct-js

Gif Blog: https://www.matthewflickinger.com/lab/whatsinagif/index.html

LZW Decompression: https://gist.github.com/devunwired/4479231

Modern Gif: https://github.com/qq15725/modern-gif

About

Decodes Gif Buffers & Files

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages