Releases: corderro-artz/crispr
Release list
crispr 0.1.0
First release.
crispr hands an SVG to headless Chromium and screenshots the result, so what lands in the PNG is what a browser draws — the same text shaping, hinting, filters, gradients, clip paths and blend modes — rather than a reimplementation of the spec.
Downloads
| Shape | Size | Node needed | For |
|---|---|---|---|
| Portable | 147 MB | No | Unzip anywhere and run. Chromium included, works offline. Start here if you are unsure. |
| Single file, thin | 36 MB | No | The same crispr.exe without Chromium. Downloads it once on first run and caches it. |
| Node-dependent | 3 MB | Yes | A folder plus a crispr.cmd shim, using a Node and a Chromium you already have. |
Every shape carries node_modules/playwright-core as real files — it lazily requires chromium-bidi by path and resolves its driver relative to its location on disk, so a bundled copy builds cleanly and then cannot launch anything.
What it does
Exact dimensions. Sizing rewrites the SVG's viewBox and width/height rather than setting deviceScaleFactor, so output is exact integers where a fractional device scale such as 800/331 rounds unpredictably. It also keeps the device scale factor at 1, so an entire run shares one browser context.
Font substitution is detected and repaired. An SVG naming a font the machine lacks still renders — Chromium substitutes silently and the PNG looks fine while being the wrong design. document.fonts.check() cannot catch this; it returns true for families that do not exist. crispr uses the DevTools Protocol's CSS.getPlatformFontsForNode, which reports the font actually rasterized with, then fetches the preferred family from Google Fonts and re-captures.
Correctness is judged against the first family in the stack, not any of it. Given Noto Sans JP, Yu Gothic, Meiryo, sans-serif, landing on Yu Gothic is CSS behaving exactly as specified and still not the design.
Batch-safe. One browser, one context, a pool of reused pages. One malformed file never aborts a batch. --strict-fonts turns a substitution into a failed build.
Quick start
crispr logo.svg
crispr assets/ -r -o dist/png --scale 2
crispr brand/ --strict-fonts
Notes
- Windows x64. The core is platform-neutral; only these builds are Windows.
- 122 tests.
--verboseprints which browser won the resolution chain, and crispr warns when it falls through to a system browser, whose version is outside its control.