# hongru/canvas2image

a tool for saving or converting canvas as img

Repository: https://github.com/hongru/canvas2image
Canonical: https://ross.abutalabs.com/products/canvas2image
Language: JavaScript
License Family: other
Last push: 2021-03-12T13:08:48+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": 5327, "days_push": 2000, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1320, forks 891 (observed 2026-08-28T04:04:21.776909+00:00)

## What it is
A small JavaScript library that saves or converts HTML5 canvas elements into image files such as PNG, JPEG, GIF, and BMP. It provides simple Canvas2Image API methods for both downloading images and converting canvases to image objects in the browser.

## Use cases
- save a canvas drawing as a png image
- export html5 canvas as jpeg
- convert canvas element to an image object
- download canvas content as bmp
- let users save their drawing from a paint app
- export a chart rendered on canvas as an image

## When to choose
- you need a tiny dependency-free way to export canvas content in the browser
- you need to save canvases in formats like BMP or GIF that toDataURL alone doesn't cover
- you want a simple drop-in script for a canvas-based drawing or charting app

## When to avoid
- you need server-side image conversion or Node.js support
- you need modern packaging (npm/ESM), TypeScript types, or active maintenance
- you need advanced export options like quality control, scaling, or SVG support

## Facets
- artifact type: library
- maturity: maintenance
- function: image-processing
- domain: web-development, frontend, image-processing
- platform: browser
- tags: canvas, image-export, png, jpeg, bmp, gif, browser-only

## Member repositories
- hongru/canvas2image (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:21.776909+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-30T04:47:27.568321+00:00, confidence not recorded.
  - readme: https://github.com/hongru/canvas2image (fetched 2026-08-28T04:04:21.776909+00:00, sha b16a78afa9e5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
