data

Compute or scale to an aspect ratio

Two modes: (1) compute the reduced aspect ratio from width + height, returning 16:9 / 4:3 / 21:9 / etc. with common-name matching; (2) scale a single dimension to a target ratio like "16:9", "4:3", "1.85:1".

post/aspect-ratio.php

Request

  • Base URL: https://mate.tools/api/v1
  • URL: https://mate.tools/api/v1/aspect-ratio.php
  • Auth: none declared

Request body

widthnumber
heightnumber
ratiostring

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.