xtract.bot
POST /api/image-pixelate

Pixelate an image: replace each NxN block with the average colour. Configurable block size. Useful for privacy / redaction and stylisation.

Replaces every `blockSize × blockSize` patch in the image with a single solid colour (the patch's average), producing a mosaic / 8-bit effect. Common uses: - Privacy redaction (faces, license plates, screen content). - Aesthetic stylisation. - Pre-processing for low-resolution downstream displays.

Inputs

NameTypeDefaultDescription
image*fileInput image (PNG / JPEG / WebP).
sizenumber (2…256)16Pixel-block edge length. Higher = chunkier.
formatenum (png | jpeg | webp)Output format (defaults to input).

Response

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