@chi_eee/gif-decoder
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

@chi_eee/gif-decoder

https://github.com/HuuChiHuynh/Gif-Decoder/actions install size Downloads

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')

const gif = Decoder.decodePath('sample.gif')
const gif = Decoder.decodeBuffer(readFileSync('sample.gif'))

Typescript:

import { Decoder } from '@chi_eee/gif-decoder';
import { readFileSync } from 'fs'

const gif = Decoder.decodePath('sample.gif')
const gif = 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

Package Sidebar

Install

npm i @chi_eee/gif-decoder

Weekly Downloads

28

Version

2.0.6

License

MIT

Unpacked Size

16.5 kB

Total Files

5

Last publish

Collaborators

  • chi_eee