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

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

Decodes the input TIFF (first page only for multi-page inputs) and renders it as ASCII art. Same options and output formats as `image-png-to-ascii`.

Inputs

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