xtract.bot

Favicon generator

Try it interactively →
POST /api/favicon-generate

Generate a multi-resolution `favicon.ico` from one source image. Includes 16, 32, and 48 px entries by default — the sizes most browsers and OSes look for.

Generates a Windows .ico file containing the standard favicon resolutions (16, 32, 48 px by default; configurable). Each entry is a square downscaled copy of the input. Drop the result at `/favicon.ico` on your site. Most browsers will pick whichever size matches their tab / bookmark / shortcut needs.

Inputs

NameTypeDefaultDescription
image*fileSource image (PNG / JPEG / WebP).
sizesstring"16,32,48,64,128,256"Comma-separated list of pixel sizes (1–256). Each becomes one square entry in the ICO. Default covers every common slot.

Response

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

Code samples

Built from the default-sizes example.

# Download or substitute the example input:
#   curl -O https://xtract.bot/examples/image-png-to-webp/sample.png
IMAGE=$(base64 -w0 < sample.png)

curl -X POST https://api.xtract.bot/api/favicon-generate \
  -H "Content-Type: application/json" \
  -H "Accept: application/octet-stream" \
  -H "X-Account-Id: $XTRACT_ACCOUNT_ID" \
  -H "X-Api-Key: $XTRACT_API_KEY" \
  -d '{
  "image": "'"$IMAGE"'"
}'