xtract.bot
POST /api/image-webp-to-ascii

Convert a WebP image to ASCII art. Configurable width, character ramp, invert mode. Plain text or coloured HTML output.

Decodes the input WebP and renders it as ASCII art. Same options and output formats as `image-png-to-ascii`.

Inputs

NameTypeDefaultDescription
image*fileWebP bytes.
widthnumber (8…400)80Output character columns (default 80).
rampstring"standard"Preset name (standard|blocks|detailed) or a custom ramp string of at least two characters.
invertbooleanfalseFlip the luminance→character mapping.
formatenum (text | html)"text"`text` for plain ASCII; `html` for a coloured <pre> document.

Response

Modes: text, json. Cache: yes (24h TTL).