Image → traced SVG → icon set
make_app_iconsTrace an AI-generated icon into a clean SVG, then export ready-to-use icon sets for PWA, favicon, Tauri, Electron, Android, iOS, and extensions.
Instructions
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 snippet.
favicon public/ — the 16/32/48 PNGs, a real multi-size favicon.ico, apple-touch-icon and the 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.
electron build/ — icon.icns (mac), icon.ico (win) and build/icons/.png (linux), the layout electron-builder picks up by default.
android res/mipmap- — ic_launcher, ic_launcher_round and the adaptive ic_launcher_foreground at every density, plus the v26 XML and the 512 Play listing icon.
ios AppIcon.appiconset — every iPhone/iPad size plus the 1024 marketing icon, with Contents.json. Forced opaque: iOS rejects alpha.
extension icons/icon-16..128.png for a Chrome/Firefox MV3 extension, with the manifest fragment to paste in.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"image": "<image>",
"outDir": "<outDir>"
},
"name": "make_app_icons"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto (default) counts the inks: one ink on paper traces mono, which is far cleaner for line art; anything else traces colour. | |
| image | Yes | Path to the generated or drawn icon image. | |
| sizes | No | Extra arbitrary PNG sizes. | |
| detail | No | high lifts the flat-art raster cap 2048 → 4096: crisper, ~4x the work. | |
| outDir | Yes | Directory to write the icon set into. | |
| search | No | 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 automatic pick unless another candidate is clearly closer. A forced mode or gradients is kept. About 2.5x slower (one full trace per candidate). The plan reports every candidate’s score. Default on; false keeps the automatic pick untested. | |
| appName | No | Name used in the webmanifest and the logolab-icons.md notes. | |
| keepSvg | No | Also write the traced SVG here (a copy is placed inside the collection anyway). | |
| presets | No | Collections to write. Default ["pwa"]. | |
| strokes | No | 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) still becomes a fill. In colour mode each stroke is painted in the ink it runs through. Default off. | |
| fidelity | No | Shape-beautification tolerance in px; 0 disables snapping to circles/lines. | |
| layering | No | 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, with a hole wherever another sits inside. Same edges either way; mono ignores it. | |
| startUrl | No | start_url in the manifest; the scope is its directory. Default "/". | |
| despeckle | No | 0 keeps every speck, 100 is aggressive. Default 25. | |
| gradients | No | auto (default) probes for real colour ramps. flat forces solid fills (right for most icons). rich forces gradient fitting. | |
| smoothing | No | 0 = crisp and node-dense, 100 = smooth and sparse. Default 50. | |
| appearance | No | How the logo sits in the icon. Default: full-bleed, transparent; the icons that must be opaque take `opaque`. | |
| themeColor | No | theme_color in the manifest and <meta name="theme-color">. Default: backgroundColor. | |
| flattenOnto | No | 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.) | |
| strokesOnly | No | 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 is a round-capped point. Nothing is dropped, but a shape that is not a line is approximated (a square comes back with round ends). For plotters and stroke-only icon sets. Default off. | |
| backgroundColor | No | background_color (splash screen) in the manifest. Default: the opaque icons’ fill. | |
| removeBackground | No | Drop the detected background layer so the SVG comes back transparent. |