The tool #
For your convenience, here is the tool:
How it works #
If you want to resize something (like an image), but wish to preserve the way it looks, you need to know something called the 'aspect ratio'. This basically is the relationship between the width and the height.
But you don't want to know about the math behind it! You just want the answer!
That's where this tool helps you:
-
1.
First, enter the old width and height. The tool uses it to calculate the aspect ratio behind the scenes
-
2.
Next, choose the new dimension you already know (new width or new height)
-
3.
Now, enter the value of that dimension
-
4.
Finally, the tool will tell you the value of the other dimension, based on the aspect ratio of the old image
That's it! The tool will tell you either the new width or height (depending on what you've chosen in step 2).
What is 'Aspect ratio' #
Wikipedia explains it like this:
The formula #
There is a simple formula for calculating aspect ratios: aspectRatio = ( oldWidth / oldHeight )
. For instance if you want to know the new height of an object, you can use: newHeight = ( newWidth / aspectRatio )
, and if you need the new width of an object, you can use: newWidth = ( newHeight * aspectRatio )
.
So first you need to know the aspect ratio by dividing the old width by the old height, and then you can use that to calculate either the new width or new height.