🖼️ Photo Aspect Ratio Calculator

Enter pixels or a target size to compute a photo aspect ratio such as 16:9 or 4:3 and the matching length of the other side.

📐 工作原理与说明
比例 = W / H;已知一边求另一边:目标边 = 已知边 × (目标比例的另一边 / 已知边)
按宽高比定义换算:输入像素或目标尺寸即可求出最简比例(如 16:9、4:3)与另一边的对应长度,用于裁剪与多平台发布尺寸统一。

📏 常见比例

📚 深度解析:照片宽高比计算器

💡 常见使用场景

  • 社媒图定比例。
  • 打印前算尺寸。
  • 视频封面定宽。
3:2 转 4:5

输入:原 6000×4000、目标 4:5。

处理:按比例算裁剪框。

输出:建议裁到 4000×5000 或留边。

❓ 常见问题(FAQ)

变形吗?
只裁剪不拉伸,按比例取框保原比例。
留边还是裁切?
按比例取框,可裁切或加边留白;社媒多裁切、打印多留白,按需求选。
会保存或上传我的内容吗?
结果以浏览器实时计算为准,纯前端本地处理、数据不上传;生成的样式与代码仅作快速产出参考,正式项目请以设计系统、规范与浏览器实测为准。

Formula & Standard References

Item Formula / Note Source / Standard
Ratio definition ratio = width / height reduced to a W:H pair Euclidean geometry
Proportional scaling scaling both sides by k raises the pixel count by k squared Euclidean geometry
Common ratios 3:2 and 4:3 come from camera formats, 16:9 from video ITU-R BT.709 (16:9)
⚠️ 使用说明与注意事项