# mplewis/src2png

📸💻 Turn your source code into beautiful syntax-highlighted images.

Repository: https://github.com/mplewis/src2png
Canonical: https://ross.abutalabs.com/products/src2png
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2023-01-24T22:42:49+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": 3281, "days_push": 1317, "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 2179, forks 56 (observed 2026-08-28T04:06:23.094890+00:00)

## What it is
A Node.js CLI tool that converts source code files into syntax-highlighted PNG images using Prism and headless Chrome via Puppeteer. It is aimed at producing high-quality code screenshots for presentations and documentation.

## Use cases
- turn source code into a syntax-highlighted image
- create code screenshots for a presentation
- generate PNG images of code snippets
- share code as a beautiful image
- screenshot syntax-highlighted code for slides

## When to choose
- You need pixel-perfect, high-quality code screenshots rendered by a real browser engine
- You want syntax highlighting for many languages via Prism
- You are preparing slides or blog images of code

## When to avoid
- You need a library/API for programmatic integration rather than a CLI
- You want a maintained tool with recent updates
- You cannot install headless Chrome, ImageMagick, and the Fira Code font

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: image-processing, cli, developer-tools
- domain: developer-tools, graphics
- platform: cli, cross-platform
- tags: syntax-highlighting, code-screenshots, puppeteer, prism, presentations, command-line, nodejs, macos, linux

## Member repositories
- mplewis/src2png (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:23.094890+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-30T02:48:46.506989+00:00, confidence not recorded.
  - readme: https://github.com/mplewis/src2png (fetched 2026-08-28T04:06:23.094890+00:00, sha 76e9b80e2225)
- Data as of 2026-08-30T08:39:29.467469+00:00.
