Export an icon collection
export_iconsRender an SVG or raster logo into platform-ready icon sets on disk for PWA, favicon, Tauri, Electron, Android, iOS, and extensions, including manifests and icon containers.
Instructions
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 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.
An SVG source is rendered analytically at every size, so a 16px favicon is drawn, not downsampled. Maskable/adaptive icons get the platform safe zone automatically (Android keeps only the centre 66% circle). Also emits the real multi-image favicon.ico / .icns containers and the text assets each platform needs (webmanifest, snippet, Contents.json, adaptive-icon XML).
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": "export_icons"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Path to the logo: an SVG (best — rendered crisply at every size) or a raster image. | |
| sizes | No | Extra arbitrary sizes, written to icons/icon-<n>.png. | |
| outDir | Yes | Directory to write into. Files land in the layout each preset expects (public/, src-tauri/icons/, res/, …). | |
| appName | No | Name used in the webmanifest and the logolab-icons.md notes. Default "App". | |
| presets | No | Which collections to write. Default ["pwa"]. Several may be combined. | |
| startUrl | No | start_url in the manifest; the scope is its directory. Default "/". | |
| appearance | No | How the logo sits in the icon. Defaults keep the source art full-bleed and transparent; the icons that must be opaque take `opaque`. | |
| themeColor | No | theme_color in the manifest and <meta name="theme-color">. Default: backgroundColor. | |
| backgroundColor | No | background_color (splash screen) in the manifest. Default: the opaque icons’ fill. |