Aspect ratio calculator
hopi_aspect_ratio_calculatorAspect ratio helper. In 'simplify' mode, give width and height to get the simplified W:H ratio, decimal ratio and nearest common ratio. In 'solve' mode, give a ratio (ratioW:ratioH) plus one of width or height to get the missing side. Source: https://hopi.co.uk/aspect-ratio-calculator/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | 'simplify' a width and height, or 'solve' a missing side from a ratio | |
| width | No | Width in pixels or units (simplify mode, or the known side in solve mode) | |
| height | No | Height in pixels or units (simplify mode, or the known side in solve mode) | |
| ratioH | No | Ratio height part, e.g. 9 (solve mode) | |
| ratioW | No | Ratio width part, e.g. 16 (solve mode) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| ratio | Yes | ||
| decimal | No | ||
| nearest | No | ||
| summary | Yes | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) |