aspect_ratio_calc
Reduce dimensions to an aspect ratio, name the closest standard ratio, scale to a target and map to social-media presets
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": {
"width": "<width>",
"height": "<height>"
},
"name": "aspect_ratio_calc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Width | |
| height | Yes | Height | |
| target_width | No | Scale to this width | |
| target_height | No | Scale to this height |