LogoLab
v0.9.1Trace an image to a clean SVG and export a full app-icon set, locally, from your coding agent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
inspect_icon Inspect an image before tracing
Report what an image is (size, format, transparency) and what the tracer WOULD do with it — colour vs mono, gradients on or off, the mono cut, the resolution it would trace at — without tracing. Fast. Use it to sanity-check a source, or to explain a choice before overriding it.
| Parameter | Type | Description |
|---|---|---|
image * | string | Path to a PNG, JPEG, WebP, GIF, BMP or SVG file. Relative paths resolve against the working directory. |
despeckle | number | 0 keeps every speck, 100 is aggressive. Default 25. |
detail | string | high lifts the flat-art raster cap 2048 → 4096: crisper, ~4x the work. |
fidelity | number | Shape-beautification tolerance in px; 0 disables snapping to circles/lines. |
flattenOnto | string | Composite a TRANSPARENT source onto this colour before tracing, e.g. "#ffffff". Omit to keep the alpha. (Not the card colour — that is appearance.background.) |
gradients | string | auto (default) probes for real colour ramps. flat forces solid fills (right for most icons). rich forces gradient fitting. |
layering | string | Colour mode. stacked (default): a shape paints under the shapes in front of it — fewer nodes, no hairline seams between colours, shapes stay whole in a design tool. tiled: shapes fit edge to edge, w… |
mode | string | auto (default) counts the inks: one ink on paper traces mono, which is far cleaner for line art; anything else traces colour. |
removeBackground | boolean | Drop the detected background layer so the SVG comes back transparent. |
smoothing | number | 0 = crisp and node-dense, 100 = smooth and sparse. Default 50. |
strokes | boolean | Trace LINE ART as centreline strokes with a measured stroke-width (open and closed stroked paths you can re-weight), instead of filled outlines of each line. Ink no stroke explains (a dot, a note head… |
strokesOnly | boolean | With `strokes`: NO filled paths at all — the ink no stroke explains (a dot, a note head, a solid shape) is drawn as round-capped strokes too, along its own middle and as wide as it is there; a dot i… |
trace_icon Trace an image to clean SVG
Vectorize a raster image into a clean, editable SVG: colour regions become real shapes with fitted curves, not a traced outline of pixels. Decides colour vs mono, gradient fitting and trace resolution automatically (override with the options). Writes the .svg and reports path count, node count and the decisions it made.
| Parameter | Type | Description |
|---|---|---|
image * | string | Path to the image to trace (PNG, JPEG, WebP, GIF, BMP, or an SVG to re-trace). |
despeckle | number | 0 keeps every speck, 100 is aggressive. Default 25. |
detail | string | high lifts the flat-art raster cap 2048 → 4096: crisper, ~4x the work. |
fidelity | number | Shape-beautification tolerance in px; 0 disables snapping to circles/lines. |
flattenOnto | string | Composite a TRANSPARENT source onto this colour before tracing, e.g. "#ffffff". Omit to keep the alpha. (Not the card colour — that is appearance.background.) |
gradients | string | auto (default) probes for real colour ramps. flat forces solid fills (right for most icons). rich forces gradient fitting. |
ink | string | Paint a MONO trace in this instead of the ink the probe read: a hex colour, or "currentColor" so the icon takes the CSS text colour (what an icon set wants). Colour traces keep their colours. |
inline | boolean | Also return the SVG markup in the response (only do this for small icons). |
inset | number | With normalize: units kept clear on each side. Default size/12 (2 on a 24 grid, as Lucide draws). |
layering | string | Colour mode. stacked (default): a shape paints under the shapes in front of it — fewer nodes, no hairline seams between colours, shapes stay whole in a design tool. tiled: shapes fit edge to edge, w… |
mode | string | auto (default) counts the inks: one ink on paper traces mono, which is far cleaner for line art; anything else traces colour. |
normalize | number | Refit the SVG into a square viewBox of this many units: normalize: 24 fits the art into "0 0 24 24", centred, with `inset` units clear on every side, coordinates rounded to 2 decimals — so every ico… |
out | string | Where to write the SVG. Default: next to the source, same name, .svg extension (<name>.traced.svg when the source is itself that .svg, so it is never overwritten). |
quiet | boolean | Return only the summary (one line per icon for a sheet) and skip the JSON block. For batches, where the JSON repeats what the summary says. |
removeBackground | boolean | Drop the detected background layer so the SVG comes back transparent. |
search | boolean | Check the automatic choices instead of trusting them: trace the choices left on auto (mono vs colour, gradients on vs off) each way, score every candidate against the image (mean ΔE), and keep the au… |
smoothing | number | 0 = crisp and node-dense, 100 = smooth and sparse. Default 50. |
strokes | boolean | Trace LINE ART as centreline strokes with a measured stroke-width (open and closed stroked paths you can re-weight), instead of filled outlines of each line. Ink no stroke explains (a dot, a note head… |
strokesOnly | boolean | With `strokes`: NO filled paths at all — the ink no stroke explains (a dot, a note head, a solid shape) is drawn as round-capped strokes too, along its own middle and as wide as it is there; a dot i… |
export_icons Export an icon collection
Render a logo (SVG or raster) into a complete icon collection on disk. Presets: pwa public/ — favicon PNGs + favicon.ico, apple-touch-icon, 192/512 PWA icons, maskable pair, manifest.webmanifest and a <head> snippet. favicon public/ — the 16/32/48 PNGs, a real multi-size favicon.ico, apple-touch-icon and the <head> snippet. web public/ — the full catalogue: every favicon, apple, Android, maskable and Windows tile size the app offers. tauri src-tauri/icons — the exact set `tauri icon` generates: PNGs, icon.ico, icon.icns and the Windows Store logos. elect…
| Parameter | Type | Description |
|---|---|---|
image * | string | Path to the logo: an SVG (best — rendered crisply at every size) or a raster image. |
outDir * | string | Directory to write into. Files land in the layout each preset expects (public/, src-tauri/icons/, res/, …). |
appName | string | Name used in the webmanifest and the logolab-icons.md notes. Default "App". |
appearance | object | How the logo sits in the icon. Defaults keep the source art full-bleed and transparent; the icons that must be opaque take `opaque`. |
backgroundColor | string | background_color (splash screen) in the manifest. Default: the opaque icons’ fill. |
presets | array | Which collections to write. Default ["pwa"]. Several may be combined. |
sizes | array | Extra arbitrary sizes, written to icons/icon-<n>.png. |
startUrl | string | start_url in the manifest; the scope is its directory. Default "/". |
themeColor | string | theme_color in the manifest and <meta name="theme-color">. Default: backgroundColor. |
make_app_icons Image → traced SVG → icon set
The whole pipeline in one call: trace the image to a clean SVG, then render that SVG into the icon collections asked for. This is the tool to use on an AI-generated icon. Presets: pwa public/ — favicon PNGs + favicon.ico, apple-touch-icon, 192/512 PWA icons, maskable pair, manifest.webmanifest and a <head> snippet. favicon public/ — the 16/32/48 PNGs, a real multi-size favicon.ico, apple-touch-icon and the <head> snippet. web public/ — the full catalogue: every favicon, apple, Android, maskable and Windows tile size the app offers. tauri src-tauri/icons —…
| Parameter | Type | Description |
|---|---|---|
image * | string | Path to the generated or drawn icon image. |
outDir * | string | Directory to write the icon set into. |
appName | string | Name used in the webmanifest and the logolab-icons.md notes. |
appearance | object | How the logo sits in the icon. Default: full-bleed, transparent; the icons that must be opaque take `opaque`. |
backgroundColor | string | background_color (splash screen) in the manifest. Default: the opaque icons’ fill. |
despeckle | number | 0 keeps every speck, 100 is aggressive. Default 25. |
detail | string | high lifts the flat-art raster cap 2048 → 4096: crisper, ~4x the work. |
fidelity | number | Shape-beautification tolerance in px; 0 disables snapping to circles/lines. |
flattenOnto | string | Composite a TRANSPARENT source onto this colour before tracing, e.g. "#ffffff". Omit to keep the alpha. (Not the card colour — that is appearance.background.) |
gradients | string | auto (default) probes for real colour ramps. flat forces solid fills (right for most icons). rich forces gradient fitting. |
keepSvg | string | Also write the traced SVG here (a copy is placed inside the collection anyway). |
layering | string | Colour mode. stacked (default): a shape paints under the shapes in front of it — fewer nodes, no hairline seams between colours, shapes stay whole in a design tool. tiled: shapes fit edge to edge, w… |
mode | string | auto (default) counts the inks: one ink on paper traces mono, which is far cleaner for line art; anything else traces colour. |
presets | array | Collections to write. Default ["pwa"]. |
removeBackground | boolean | Drop the detected background layer so the SVG comes back transparent. |
search | boolean | Check the automatic choices instead of trusting them: trace the choices left on auto (mono vs colour, gradients on vs off) each way, score every candidate against the image (mean ΔE), and keep the au… |
sizes | array | Extra arbitrary PNG sizes. |
smoothing | number | 0 = crisp and node-dense, 100 = smooth and sparse. Default 50. |
startUrl | string | start_url in the manifest; the scope is its directory. Default "/". |
strokes | boolean | Trace LINE ART as centreline strokes with a measured stroke-width (open and closed stroked paths you can re-weight), instead of filled outlines of each line. Ink no stroke explains (a dot, a note head… |
strokesOnly | boolean | With `strokes`: NO filled paths at all — the ink no stroke explains (a dot, a note head, a solid shape) is drawn as round-capped strokes too, along its own middle and as wide as it is there; a dot i… |
themeColor | string | theme_color in the manifest and <meta name="theme-color">. Default: backgroundColor. |
split_icon_sheet Split a sheet of icons
Cut a CONTACT SHEET — a grid of many icons on one canvas, which is what image models usually return for "a set of icons" — into individual traced SVGs. Detects the tiles (grid or free layout; pass `grid` when you know the layout, which also keeps an icon drawn as separate pieces whole), crops each with the sheet's own paper colour, and traces each one with its own plan: a one-ink glyph goes mono, a shaded badge goes colour. Tiles come back transparent (removeBackground is ON here) and every mono tile of the same ink is painted in ONE ink, so a set stays consistent; `ink: "currentColor"` an…
| Parameter | Type | Description |
|---|---|---|
outDir * | string | Directory to write one SVG per detected icon into. |
sheet * | string | Path to the sheet image. |
despeckle | number | 0 keeps every speck, 100 is aggressive. Default 25. |
detail | string | high lifts the flat-art raster cap 2048 → 4096: crisper, ~4x the work. |
fidelity | number | Shape-beautification tolerance in px; 0 disables snapping to circles/lines. |
gap | number | Force the grouping gap in source px. Omit to detect it; prefer `grid` when the layout is known. |
gradients | string | Default auto. |
grid | object | The layout, when you know it: { rows, cols }. Everything inside one cell is one icon, however far apart its pieces are (a dashed curve, four corner brackets, a dashboard of four rectangles) — the ca… |
ink | string | Paint a MONO trace in this instead of the ink the probe read: a hex colour, or "currentColor" so the icon takes the CSS text colour (what an icon set wants). Colour traces keep their colours. |
inset | number | With normalize: units kept clear on each side. Default size/12 (2 on a 24 grid, as Lucide draws). |
keepCrops | boolean | Also write each tile as a PNG next to its SVG. |
layering | string | Colour mode. stacked (default): a shape paints under the shapes in front of it — fewer nodes, no hairline seams between colours, shapes stay whole in a design tool. tiled: shapes fit edge to edge, w… |
limit | integer | Trace at most this many tiles (tracing is the slow part). A limited run is a preview: it removes nothing. |
mode | string | Per-tile colour decision. Default auto. |
names | array | File names for the icons in READING order (row-major, top-left first): ["home", "search", …] writes home.svg, search.svg, …. Icons past the end of the list keep <prefix>-nn. |
normalize | number | Refit the SVG into a square viewBox of this many units: normalize: 24 fits the art into "0 0 24 24", centred, with `inset` units clear on every side, coordinates rounded to 2 decimals — so every ico… |
padding | number | Padding around each icon as a fraction of its long side. Default 0.08. |
prefix | string | File-name stem: <prefix>-01.svg. Default: the sheet file name. |
quiet | boolean | Return only the summary (one line per icon for a sheet) and skip the JSON block. For batches, where the JSON repeats what the summary says. |
removeBackground | boolean | Default TRUE on a sheet: tiles come back transparent. Pass false to keep each tile's paper as a rectangle under the ink. |
smoothing | number | 0 = crisp and node-dense, 100 = smooth and sparse. Default 50. |
strokes | boolean | Trace LINE ART as centreline strokes with a measured stroke-width (open and closed stroked paths you can re-weight), instead of filled outlines of each line. Ink no stroke explains (a dot, a note head… |
strokesOnly | boolean | With `strokes`: NO filled paths at all — the ink no stroke explains (a dot, a note head, a solid shape) is drawn as round-capped strokes too, along its own middle and as wide as it is there; a dot i… |
threshold | number | How far from the paper colour a pixel counts as ink. Default 24. |