compress_image
Compress a local image to a target size in KB or quality, then save a compressed copy to disk. Control format and output path without uploading.
Instructions
Compress a local image to a target size (KB) or quality. Writes a new file next to the source unless output is set. Does not upload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Local path to the source image | |
| format | No | ||
| output | No | Local output path | |
| quality | No | JPEG/WebP quality 1–100 | |
| targetKB | No | Max size in kilobytes |