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

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

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

Inputs

NameTypeDefaultDescription
image*fileJPEG 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).