{"ok":true,"result":{"slug":"aspect-ratio-calculator","name":"Aspect Ratio Calculator","summary":"Simplify width × height to an aspect ratio (1920×1080 → 16:9, with the nearest common preset), or resize to a ratio by solving the missing width or height.","description":"Find the aspect ratio of any width and height, simplify ratios like 1920×1080 to 16:9, and work out a missing width or height. Includes common presets.","method":"POST","endpoint":"/api/v1/tools/aspect-ratio-calculator","plan":"free","mcpName":"aspect_ratio_calculator","input":{"type":"object","additionalProperties":false,"properties":{"mode":{"type":"string","description":"simplify: reduce width and height to a ratio. solve: given ratio and one of width or height, compute the other.","default":"simplify","enum":["simplify","solve"],"maxLength":200000},"width":{"type":"number","description":"Width in any unit (pixels, cm…), greater than 0. Required for simplify; for solve, give width or height, not both.","minimum":0},"height":{"type":"number","description":"Height in the same unit, greater than 0. Required for simplify; for solve, give width or height, not both.","minimum":0},"ratio":{"type":"string","description":"For solve: the target ratio, e.g. \"16:9\", \"4/3\", \"21x9\" or a decimal like \"2.39\".","maxLength":40}}},"example":{"mode":"simplify","width":1920,"height":1080},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/aspect-ratio-calculator","page":"https://pithlab.com/tools/aspect-ratio-calculator"}}