{"category":"calc","endpoint":"https://setget.net/v1/tools/aspect-ratio","examples":[{"input":{"height":1080,"target_width":1280,"width":1920},"output":{"decimal":1.7778,"nearest_common":"16:9","orientation":"landscape","ratio":"16:9","ratio_height":9,"ratio_width":16,"target":{"height":720,"width":1280}}},{"input":{"height":768,"width":1366},"output":{"decimal":1.7786,"nearest_common":"16:9","orientation":"landscape","ratio":"683:384","ratio_height":384,"ratio_width":683,"target":null},"title":"Nearly 16:9"}],"input_schema":{"additionalProperties":false,"properties":{"height":{"description":"The original height.","examples":[1080],"maximum":1000000000.0,"type":"number"},"target_height":{"description":"A new height, to get the matching width.","maximum":1000000000.0,"type":"number"},"target_width":{"description":"A new width, to get the matching height.","examples":[1280],"maximum":1000000000.0,"type":"number"},"width":{"description":"The original width.","examples":[1920],"maximum":1000000000.0,"type":"number"}},"required":["width","height"],"type":"object"},"keywords":["aspect ratio calculator","16:9 calculator","resize image keep ratio","screen ratio","image dimensions","video resolution","scale width height"],"related":["fraction","unit-convert","percent"],"slug":"aspect-ratio","summary":"Simplify a width and height to a ratio such as 16:9, and scale to a new width or height.","tier":"inline","title":"Aspect ratio calculator","url":"https://setget.net/tools/aspect-ratio"}
