gdx-image-webify
Convert images to WebP or AVIF formats. Specify input files and target format to optimize images for web use.
Instructions
A tool to convert images to different formats using sharp. Convert from .jpg, .jpeg, .png, .webp, .tiff, .avif, .gif, .svg to webp, avif.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | An array of image paths. You can provide specific file paths, or use glob patterns like "C:/images/*.png" to select multiple files at once.Should be images with the following formats: .jpg, .jpeg, .png, .webp, .tiff, .avif, .gif, .svg | |
| toPath | No | Destination folder. If omitted, uses the original file directory. | |
| quality | No | The quality of the conversion | |
| toFormat | Yes | The format to convert the images to: webp or avif | |
| forceOverwrite | No | SAFETY CHECK: Must be false by default. If a file exists, the tool will fail/skip. ONLY set to true if the user explicitly says "yes" or "overwrite" in their last message. |