Aspect ratio is the ratio between the height and width of an image. If you want to resize an image by 100 pixels, you cant remove 100px from the height and width, otherwise, it would become distorted. You will need to resize the height or width and then use the aspect ratio to calculate what the other measurement should be. This tool is an aspect ratio calculator for images. Select an image file and it will tell you the aspect ratio as well as some other important metrics about the dimensions of the image file.
Select an Image File
Other browsers may support additonal formats such as webp
Calculate Image Aspect Ratio From Width and Height
In order to calculate the aspect ratio of an image, you will simply need to divide the width by the height of the image. When resizing relative to the aspect ratio, you will set an amount for one side of the image. Lets say 100px increase for the width. To then increase the height by a relative amount, you will need to do the following equation. 100px * (w/h). This may be more than 100px for a portrait image and will be smaller for a landscape. That’s it, a simple way to obtain the value. The tool above will allow you to do this super easy by giving you the aspect ratio.
If anyone has any suggestions on how to improve this aspect ratio calculator, please let me know in the comments below. I would be happy to add any additional features needed.