Image Optimizer
Convert heavy PNG and JPEG uploads into lean WebP assets. Adjust width and quality — the preview updates live as you tune settings.
JSON API reference01
Source Image
Client-side only. Your file never leaves the browser unless you call the JSON API. PNG and JPEG are fully supported; WebP uploads preview locally but the API accepts PNG/JPEG masters.
02
Stats
Upload a source image to see before/after stats.
API & agent accessPOST /api/tools/image.json
JSON contract
Image Optimizer uses the same fields in the browser studio and viaPOST /api/tools/image.json. Full toolkit catalog:/api/tools/manifest.json.
Agents can POST a base64-encoded PNG/JPEG and receive an optimized WebP payload.
- maxWidth: 320–4096 (default 1920). quality: 0.1–1 (default 0.82).
- imageBase64 accepts raw base64 or data:image/png|jpeg;base64,... URLs.
- Errors return code, field, and hint — e.g. invalid_base64, optimize_failed.
- The studio runs entirely in your browser — source files never leave the page unless you call the API.
POST /api/tools/image.json
Content-Type: application/json
{
"imageBase64": "<base64-encoded-png-or-jpeg>",
"maxWidth": 1920,
"quality": 0.82
}