build(icons): migrate icon rasterization to rsvg-convert\n\n- Replace ImageMagick (magick/convert) with rsvg-convert in build script\n- Update icons/README to document rsvg-convert requirement

This commit is contained in:
Jordan Wages 2025-08-24 02:25:18 -05:00
commit f293092657
2 changed files with 18 additions and 21 deletions

View file

@ -15,8 +15,8 @@ Run `npm run build` (or `npm run build:icons`) to regenerate. The manifest is wi
Notes
-----
- Source: `icons/file-search.svg` defines the exact stroke color (an emphasis color) directly in the SVG.
- The build script does not inject or replace colors; it rasterizes the SVG as-is to transparent PNGs using ImageMagick.
- The build script does not inject or replace colors; it rasterizes the SVG as-is to transparent PNGs using `rsvg-convert`.
- To change the icon color, edit the `stroke="#..."` attribute in `icons/file-search.svg`.
- Firefox does not require .ico; PNG is recommended.
- Theme variants can be added later via `browser_action.theme_icons` if desired.
- Rasterizer: uses ImageMagick only (`magick` or `convert`). Ensure your ImageMagick build supports reading SVG (via `librsvg` or a compatible delegate).
- Rasterizer: uses `rsvg-convert` (from librsvg). Ensure it is installed and available on your PATH.