gif-writer
TypeScript icon, indicating that this package has built-in type declarations

0.9.4 • Public • Published

gif-writer

GIF (version 89a) Encoder written in TypeScript.

This library provides both JavaScript modules and TypeScript declaration files (.d.ts files).

Classes

Two fundamental classes are included.

  • GifWriter
  • MedianCutColorReducer

GifWriter

The GifWriter class writes an indexed color image data to an output stream.

  • An indexed color image data is represented with an object which has IIndexedColorImage interface. The IndexedColorImage implements this interface.
  • An output stream is represented with an object which has IOutputStream interface.

MedianCutColorReducer

MedianCutColorReducer is simple color quantizer. It uses the median cut algorithm. If you have a full color image data and you want to write it as GIF by using GifWriter, you must do color quantization by using this class (or by other way) first.

Example

The gif-writer project provides a subproject to show how to use this module. Please see it.

Readme

Keywords

Package Sidebar

Install

npm i gif-writer

Weekly Downloads

5

Version

0.9.4

License

MIT

Unpacked Size

30.6 kB

Total Files

11

Last publish

Collaborators

  • nobuoka