# antimatter15/jsgif

Save a HTML5 Canvas to GIF and Animations. A port of as3gif GIFPlayer to JS

Repository: https://github.com/antimatter15/jsgif
Canonical: https://ross.abutalabs.com/products/jsgif
Homepage: http://antimatter15.com/
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2023-05-21T13:19:27+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5886, "days_push": 1200, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1106, forks 137 (observed 2026-08-28T04:03:36.532182+00:00)

## What it is
A pure JavaScript library that encodes HTML5 canvas content (single frames or animations) into GIF images, ported from the ActionScript as3gif GIFEncoder. It runs entirely client-side using LZW encoding and NeuQuant color quantization.

## Use cases
- export html5 canvas animation as gif
- create animated gif in browser from canvas frames
- save canvas drawing as gif image
- record canvas animation client-side without server
- convert canvas image data to gif in javascript

## When to choose
- you need client-side GIF generation from canvas with no server dependency
- you want a small dependency-free JavaScript GIF encoder
- you're capturing canvas animations frame by frame in the browser

## When to avoid
- you need modern maintained tooling or active support
- you need GIF decoding rather than encoding
- you need high-performance or WebP/video output formats

## Facets
- artifact type: library
- maturity: maintenance
- function: image-processing, graphics
- domain: graphics, web-development, frontend
- platform: browser
- tags: gif-encoder, canvas, animation, html5-canvas, lzw, client-side, javascript, nodejs

## Member repositories
- antimatter15/jsgif (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:36.532182+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:44:13.332218+00:00, confidence not recorded.
  - readme: https://github.com/antimatter15/jsgif (fetched 2026-08-28T04:03:36.532182+00:00, sha d034ea191c8c)
  - homepage: http://antimatter15.com/ (fetched 2026-08-29T12:47:39.271722+00:00, sha bb0403281a95)
  - site_page: https://antimatter15.com/about (fetched 2026-08-29T12:47:39.281086+00:00, sha ef38a1a0e601)
  - site_page: https://antimatter15.com/tag/features (fetched 2026-08-29T12:47:39.283148+00:00, sha cb46f9728a95)
  - site_page: https://antimatter15.com/project/dorm-weather (fetched 2026-08-29T12:47:39.285375+00:00, sha 2728423ee73e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
