Batch convert images
batch_convertConvert multiple local images at once to JPEG, PNG, WebP, or AVIF from paths or a directory, output separate files or a zip, and report per-file errors.
Instructions
Convert several local images at once, from a list of paths and/or a directory (non-recursive). Writes the results as separate files or as one .zip archive into outputDir. Continues past bad files and reports each error. Runs entirely on this machine. Limit: 200 files per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zip | No | Pack all results into one zip file instead of separate files. | |
| format | Yes | Output format: jpeg, png, webp or avif. | |
| inputs | No | List of image paths relative to the allowed root. | |
| quality | No | Quality 0.5-1.0 for jpeg/webp/avif (default 0.85; 1.0 = lossless for webp/avif). Ignored for png. | |
| zipName | No | Zip file name without path (default: converted.zip). | |
| inputDir | No | Directory whose images (jpg, png, webp, avif, gif, tiff, heic) are converted. Not recursive. | |
| outputDir | Yes | Directory for the results, relative to the allowed root. Created if missing. | |
| keepMetadata | No | Keep EXIF/XMP metadata such as camera and GPS data. Default false: metadata is stripped (images are auto-rotated first). |