# exupero/saveSvgAsPng

Save SVGs as PNGs from the browser.

Repository: https://github.com/exupero/saveSvgAsPng
Canonical: https://ross.abutalabs.com/products/savesvgaspng
Language: HTML
License: MIT
License Family: permissive
Topics: javascript, pngs, svg, data-uri
Archived: true
Last push: 2020-01-27T14:53:52+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4632, "days_push": 2410, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1093, forks 351 (observed 2026-08-28T04:03:33.600658+00:00)

## What it is
A browser-side JavaScript library that converts SVG elements to PNG images and downloads them, or returns them as data URIs. It supports scaling, background colors, font inlining, and CSS customization options.

## Use cases
- export an SVG chart as a PNG from the browser
- convert inline SVG diagrams to downloadable PNG files
- get a PNG data URI from an SVG element
- let users download vector graphics as raster images
- scale SVG exports to higher or lower resolution PNGs
- inline fonts and CSS when rasterizing SVGs

## When to choose
- you need client-side SVG-to-PNG conversion without a server
- you want to offer PNG download of charts or diagrams rendered as SVG
- you need data URIs of rasterized SVGs for embedding or sharing

## When to avoid
- you need server-side or Node.js SVG rendering
- you need SVG-to-PDF or other output formats
- you require full SVG feature fidelity for complex filters or animations

## Facets
- artifact type: library
- maturity: maintenance
- function: image-processing, graphics
- domain: web-development, frontend, graphics
- platform: browser
- tags: svg, png, data-uri, canvas, browser-rendering, javascript

## Member repositories
- exupero/saveSvgAsPng (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:33.600658+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:47:50.415813+00:00, confidence not recorded.
  - readme: https://github.com/exupero/saveSvgAsPng (fetched 2026-08-28T04:03:33.600658+00:00, sha 48fdeb483b6f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
