外观比例计算器

调整宽度和高度,同时保持相同的宽度比。

输入新的宽度以获得保持比例的高度。
或者输入新高度以获得匹配宽度。
对比比 —
新高度 —
新宽宽度 —
与小数点的比率 —
原始 subgmm 像素 —

输入结果时更新 。

这个计算器给你正确的答案了吗?

关于此计算器

An aspect ratio calculator keeps an image, video frame or screen in proportion when you resize it, so nothing ends up stretched or squashed. Enter the original width and height and it reduces them to the simplest whole-number ratio (like 16:9) by dividing both by their greatest common divisor. Type a new width and it returns the height that preserves the shape; type a new height instead and it returns the matching width.

Worked example: scaling a 1920×1080 image down to a 1280 width gives a height of 1280 × 1080 ÷ 1920 = 720, keeping the exact 16:9 shape. The tool also reports the ratio as a decimal (1920 ÷ 1080 = 1.778) and the original pixel count in megapixels (1920 × 1080 ÷ 1,000,000 ≈ 2.07 MP).

Photographers, video editors and web designers use it to fit an image into a fixed frame, work out crop dimensions, or check that a monitor and its content share the same ratio before letterboxing appears.

经常问到的问题

调整比例时我如何保持比例图像?

将原来的宽度除以原来的高度以获得比例, 然后将您的新宽度乘以( 原高 原宽度 原宽度) 。 缩放 1920 × 1080 下至 1 280 宽度, 高度为 1280 × 1080 1920 = 720 。

16: 9这样的宽度比例意味着什么?

宽度至高度的简化比例。 1920:1080 两者除以120, 得出16:9, 即每高度9个宽度单位为16个宽度单位—— 高度视频和大多数显示器的标准。

最常见的侧翼比率是什么?

16:9是HD和4K视频以及大多数显示器和电话在地貌中的标准;4:3是老电视和许多平板电脑;3:2在摄影和DSLR传感器中很常见;1:1是平方(社会柱);21:9是超广或电影。输入像素维度显示您拥有的像素维度。

我如何找到图像的侧比?

输入像素宽度和高度作为原始尺寸——计算器以最大的共同比差将两者分开,以给出最简单的比例。例如,2000年3000×3000×3:2。

如果我调整规模而不维持比例怎么办?

图像扭曲 — — 圆圈变成奥瓦尔和面部伸展。 将内容安装在一个框架,其比例不同,而是添加黑条(信箱上下,或边边框的柱子),这样原始比例就得以保留。

小数点后的比率意味着什么?

宽度除以高度。 16:9是1.778, 4:3是1.333, 小数点较大是指宽度更大、长度较大的框架。 当将一个区划标为一个数字而不是一个结号比例时, 使用方便 。

❤️ 爱 Calculator.Free? 分享它

𝕏  X Facebook Reddit
API - 使用代码中的计算器

将此计算器称为自由 JSON 端点 。 不需要按键 。 将字段值发送到下面作为查询参数或 JSON 。 任何您省略的, 都会使用相同的默认值, 此页面预填的默认值是预填的; 未知参数是 400, 而不是静音零 。 读取 API 全部文件 →

终点

GET https://calculator.free/api/v1/aspect-ratio/

curl

curl "https://calculator.free/api/v1/aspect-ratio/?ow=1920&oh=1080&nw=1280"

JavaScript fetch()

const r = await fetch(
  "https://calculator.free/api/v1/aspect-ratio/?" + new URLSearchParams({
    "ow": "1920",
    "oh": "1080",
    "nw": "1280"
  }));
const data = await r.json();
console.log(data.results);

成果仅是一般指导的估计数,而不是财务、医疗或税务咨询。