resize_image
Adjust image dimensions by specifying width, height, and fit method. Save the resized image to a designated path for optimized file management.
Instructions
Resize an image and save to a new file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
fit | No | Fit method: cover, contain, fill, inside, outside | |
height | No | Target height in pixels (optional) | |
input | Yes | Path to the input image file | |
output | Yes | Path to save the resized image | |
width | Yes | Target width in pixels |
Input Schema (JSON Schema)
{
"properties": {
"fit": {
"description": "Fit method: cover, contain, fill, inside, outside",
"enum": [
"cover",
"contain",
"fill",
"inside",
"outside"
],
"type": "string"
},
"height": {
"description": "Target height in pixels (optional)",
"type": "number"
},
"input": {
"description": "Path to the input image file",
"type": "string"
},
"output": {
"description": "Path to save the resized image",
"type": "string"
},
"width": {
"description": "Target width in pixels",
"type": "number"
}
},
"required": [
"input",
"output",
"width"
],
"type": "object"
}