Image Studio & Optimizer
Convert and crop heavy image uploads into lean web-ready assets. Adjust quality, resize modes, and rotation — the preview and copy targets update live.
JSON API reference01
Source Image
100% Client-side privacy. Your source files never touch the network. All optimization runs locally in your browser's canvas pipeline.
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
}