Edit image
edit_imageEdit an uploaded image: rotate, flip, crop (pixels or aspect ratio), resize (width/height, percent, megapixels), grayscale (black & white), sepia, brightness, contrast, warm, cool, invert, blur, sharpen — applied in order. Optionally change the format (jpeg/png/webp) or make the file at most max_kb kilobytes. Creates a NEW image with its own page_url, image_url and download_url; the original stays unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Image id returned by upload_image or edit_image (e.g. "vqSvesFU") | |
| format | No | ||
| max_kb | No | Largest file size in KB (jpeg/webp) | |
| quality | No | ||
| filename | No | ||
| operations | No | Example: [{"op":"rotate","degrees":90},{"op":"resize","width":1080},{"op":"grayscale"}] | |
| return_preview | No | Also return a small preview of the image so you can look at it (default false) |