Skip to content

Generate icons with resvg instead of svg2png - #333

Merged
rthaut merged 1 commit into
masterfrom
build/icons-resvg
Oct 13, 2026
Merged

rthaut merged 1 commit into
masterfrom
build/icons-resvg

Conversation

@rthaut

@rthaut rthaut commented Oct 13, 2026

Copy link
Copy Markdown
Owner

`scripts/generate-icons.js` now renders the icons with `@resvg/resvg-js` instead of `svg2png`. svg2png depends on the unmaintained `phantomjs-prebuilt`, which brought in about 8 of the open Dependabot alerts. Removing it drops about 1,800 lines from the lockfile.

The logo is wider than it is tall. svg2png centered it in a square canvas, so the script now centers it in a square viewBox to produce the same square icons. I regenerated every icon size with `npm run build:icons`, and the new icons match the old ones at 16px and 128px.

svg2png depends on the unmaintained phantomjs-prebuilt, which pulls in
several packages with security alerts. resvg renders the same icons
without a headless browser.
@rthaut
rthaut merged commit 0937404 into master Oct 13, 2026
1 check passed
@rthaut
rthaut deleted the build/icons-resvg branch October 13, 2026 03:40
@github-actions github-actions Bot mentioned this pull request Oct 12, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant