aspect-ratio-calculator
Aspect Ratio Calculator — Free aspect ratio calculator: simplify any width and height to its lowest ratio, match common presets like 16:9, and scale to any size — all in your browser.
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-calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Width in any unit. Range 0.0001-1000000000. | |
| height | Yes | Height in the same unit. Range 0.0001-1000000000. | |
| target_width | No | Optional: width to scale to; returns the matching height. | |
| target_height | No | Optional: height to scale to; returns the matching width. |