xtract.bot
POST /api/tiff-to-webp

Convert a TIFF image to WebP. Transparency is preserved. Multi-page TIFFs return the first page only.

Reads a TIFF and returns the same picture as a WebP. WebP supports transparency, so any alpha in the source is preserved. For single-page TIFFs the conversion is direct. Multi-page TIFFs (common for fax / scan documents) return the first page only — the rest are dropped. Quality is 0–100 (default 75). Use `lossless: true` to encode WebP losslessly from the decoded pixels.

Inputs

NameTypeDefaultDescription
image*fileInput TIFF bytes.
qualitynumber (0…100)75WebP quality 0–100 (default 75). Ignored when lossless=true.
losslessbooleanfalseWhen true, encode losslessly from the decoded TIFF pixels. `quality` is ignored.

Response

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