xtract.bot
POST /api/image-ico-to-png

Extract a PNG from a Windows .ico file. Pick a specific size by index, or get the largest by default. Handles BMP and PNG-encoded entries.

A `.ico` file contains multiple icon images at different resolutions (16×16, 32×32, 48×48, 256×256, …). This tool returns one of them as a PNG. By default the largest entry is extracted. Pass `index` to pick a specific entry (0-based), or `size` to pick the closest match for a given pixel dimension. Both BMP-encoded and PNG-encoded entries inside the .ico are handled.

Inputs

NameTypeDefaultDescription
image*fileInput ICO file.

Response

Modes: binary, base64-json. Cache: yes (24h TTL).