rotate_flip
Rotate images clockwise by specified degrees and flip horizontally or vertically; applies EXIF orientation first to fix sideways photos and save corrected output.
Instructions
Rotate clockwise by degrees (90/180/270 are exact and lossless; other angles enlarge
the canvas and fill corners with background, transparent by default) and/or flip
('horizontal' = mirror left-right, 'vertical' = upside down).
EXIF orientation is always applied first, so degrees=0 with no flip simply fixes a photo that shows sideways in some viewers (auto-orient) and removes the stale tag. Output: photo.rotated.jpg unless output= is given; never overwrites unless overwrite=true.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "rotate_flip"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flip | No | none | |
| path | Yes | ||
| output | No | ||
| degrees | No | ||
| preview | No | ||
| quality | No | ||
| overwrite | No | ||
| allow_huge | No | ||
| background | No | ||
| keep_metadata | No |