rotate_image
Rotate images by a specified angle, adjust background color for exposed areas, and save the output. Ideal for precise image orientation adjustments.
Instructions
Rotate an image by specified degrees
Input Schema
Name | Required | Description | Default |
---|---|---|---|
angle | Yes | Rotation angle in degrees (positive = clockwise) | |
background | No | Background color for exposed areas (hex or named color) | #000000 |
inputPath | Yes | Path to input image | |
outputPath | Yes | Path to save rotated image |
Input Schema (JSON Schema)
{
"properties": {
"angle": {
"description": "Rotation angle in degrees (positive = clockwise)",
"type": "number"
},
"background": {
"default": "#000000",
"description": "Background color for exposed areas (hex or named color)",
"type": "string"
},
"inputPath": {
"description": "Path to input image",
"type": "string"
},
"outputPath": {
"description": "Path to save rotated image",
"type": "string"
}
},
"required": [
"inputPath",
"outputPath",
"angle"
],
"type": "object"
}