LogoLab

v0.9.1
io.github.Blaxzter/logolab Checked 11 hours ago Published 7 days ago

Trace 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.

ParameterTypeDescription
image *stringPath to a PNG, JPEG, WebP, GIF, BMP or SVG file. Relative paths resolve against the working directory.
despecklenumber0 keeps every speck, 100 is aggressive. Default 25.
detailstringhigh lifts the flat-art raster cap 2048 → 4096: crisper, ~4x the work.
fidelitynumberShape-beautification tolerance in px; 0 disables snapping to circles/lines.
flattenOntostringComposite a TRANSPARENT source onto this colour before tracing, e.g. "#ffffff". Omit to keep the alpha. (Not the card colour — that is appearance.background.)
gradientsstringauto (default) probes for real colour ramps. flat forces solid fills (right for most icons). rich forces gradient fitting.
layeringstringColour 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…
modestringauto (default) counts the inks: one ink on paper traces mono, which is far cleaner for line art; anything else traces colour.
removeBackgroundbooleanDrop the detected background layer so the SVG comes back transparent.
smoothingnumber0 = crisp and node-dense, 100 = smooth and sparse. Default 50.
strokesbooleanTrace 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…
strokesOnlybooleanWith `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.

ParameterTypeDescription
image *stringPath to the image to trace (PNG, JPEG, WebP, GIF, BMP, or an SVG to re-trace).
despecklenumber0 keeps every speck, 100 is aggressive. Default 25.
detailstringhigh lifts the flat-art raster cap 2048 → 4096: crisper, ~4x the work.
fidelitynumberShape-beautification tolerance in px; 0 disables snapping to circles/lines.
flattenOntostringComposite a TRANSPARENT source onto this colour before tracing, e.g. "#ffffff". Omit to keep the alpha. (Not the card colour — that is appearance.background.)
gradientsstringauto (default) probes for real colour ramps. flat forces solid fills (right for most icons). rich forces gradient fitting.
inkstringPaint 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.
inlinebooleanAlso return the SVG markup in the response (only do this for small icons).
insetnumberWith normalize: units kept clear on each side. Default size/12 (2 on a 24 grid, as Lucide draws).
layeringstringColour 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…
modestringauto (default) counts the inks: one ink on paper traces mono, which is far cleaner for line art; anything else traces colour.
normalizenumberRefit 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…
outstringWhere 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).
quietbooleanReturn 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.
removeBackgroundbooleanDrop the detected background layer so the SVG comes back transparent.
searchbooleanCheck 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…
smoothingnumber0 = crisp and node-dense, 100 = smooth and sparse. Default 50.
strokesbooleanTrace 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…
strokesOnlybooleanWith `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…

ParameterTypeDescription
image *stringPath to the logo: an SVG (best — rendered crisply at every size) or a raster image.
outDir *stringDirectory to write into. Files land in the layout each preset expects (public/, src-tauri/icons/, res/, …).
appNamestringName used in the webmanifest and the logolab-icons.md notes. Default "App".
appearanceobjectHow the logo sits in the icon. Defaults keep the source art full-bleed and transparent; the icons that must be opaque take `opaque`.
backgroundColorstringbackground_color (splash screen) in the manifest. Default: the opaque icons’ fill.
presetsarrayWhich collections to write. Default ["pwa"]. Several may be combined.
sizesarrayExtra arbitrary sizes, written to icons/icon-<n>.png.
startUrlstringstart_url in the manifest; the scope is its directory. Default "/".
themeColorstringtheme_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 —…

ParameterTypeDescription
image *stringPath to the generated or drawn icon image.
outDir *stringDirectory to write the icon set into.
appNamestringName used in the webmanifest and the logolab-icons.md notes.
appearanceobjectHow the logo sits in the icon. Default: full-bleed, transparent; the icons that must be opaque take `opaque`.
backgroundColorstringbackground_color (splash screen) in the manifest. Default: the opaque icons’ fill.
despecklenumber0 keeps every speck, 100 is aggressive. Default 25.
detailstringhigh lifts the flat-art raster cap 2048 → 4096: crisper, ~4x the work.
fidelitynumberShape-beautification tolerance in px; 0 disables snapping to circles/lines.
flattenOntostringComposite a TRANSPARENT source onto this colour before tracing, e.g. "#ffffff". Omit to keep the alpha. (Not the card colour — that is appearance.background.)
gradientsstringauto (default) probes for real colour ramps. flat forces solid fills (right for most icons). rich forces gradient fitting.
keepSvgstringAlso write the traced SVG here (a copy is placed inside the collection anyway).
layeringstringColour 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…
modestringauto (default) counts the inks: one ink on paper traces mono, which is far cleaner for line art; anything else traces colour.
presetsarrayCollections to write. Default ["pwa"].
removeBackgroundbooleanDrop the detected background layer so the SVG comes back transparent.
searchbooleanCheck 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…
sizesarrayExtra arbitrary PNG sizes.
smoothingnumber0 = crisp and node-dense, 100 = smooth and sparse. Default 50.
startUrlstringstart_url in the manifest; the scope is its directory. Default "/".
strokesbooleanTrace 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…
strokesOnlybooleanWith `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…
themeColorstringtheme_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…

ParameterTypeDescription
outDir *stringDirectory to write one SVG per detected icon into.
sheet *stringPath to the sheet image.
despecklenumber0 keeps every speck, 100 is aggressive. Default 25.
detailstringhigh lifts the flat-art raster cap 2048 → 4096: crisper, ~4x the work.
fidelitynumberShape-beautification tolerance in px; 0 disables snapping to circles/lines.
gapnumberForce the grouping gap in source px. Omit to detect it; prefer `grid` when the layout is known.
gradientsstringDefault auto.
gridobjectThe 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…
inkstringPaint 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.
insetnumberWith normalize: units kept clear on each side. Default size/12 (2 on a 24 grid, as Lucide draws).
keepCropsbooleanAlso write each tile as a PNG next to its SVG.
layeringstringColour 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…
limitintegerTrace at most this many tiles (tracing is the slow part). A limited run is a preview: it removes nothing.
modestringPer-tile colour decision. Default auto.
namesarrayFile 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.
normalizenumberRefit 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…
paddingnumberPadding around each icon as a fraction of its long side. Default 0.08.
prefixstringFile-name stem: <prefix>-01.svg. Default: the sheet file name.
quietbooleanReturn 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.
removeBackgroundbooleanDefault TRUE on a sheet: tiles come back transparent. Pass false to keep each tile's paper as a rectangle under the ink.
smoothingnumber0 = crisp and node-dense, 100 = smooth and sparse. Default 50.
strokesbooleanTrace 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…
strokesOnlybooleanWith `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…
thresholdnumberHow far from the paper colour a pixel counts as ink. Default 24.