optimize_image
Optimize images by resizing and adjusting quality to reduce file size while maintaining aspect ratio. Specify input and output paths, target dimensions, and compression settings for efficient image management.
Instructions
Create an optimized version of an image
Input Schema
Name | Required | Description | Default |
---|---|---|---|
height | No | Target height (maintains aspect ratio if only height is specified) | |
inputPath | Yes | Path to the input image | |
outputPath | Yes | Path where to save the optimized image | |
quality | No | JPEG/WebP quality (1-100) | |
width | No | Target width (maintains aspect ratio if only width is specified) |