Maybe I'm just way too old school, but when dealing with resizing anything, I like to jot down a simple fractional equation. For example, if there's a video that's 530 x 298 pixels and you need to resize that to 505 pixels wide, and maintain the aspect ratio:
First, setup the simple equation like so: Image may be NSFW. Second, cross-multiply the fraction: Image may be NSFW. Then solve for y, divide both sides by 530: Image may be NSFW. And you may want to round the answer: Image may be NSFW. Image may be NSFW. |
In general terms, if you have: Image may be NSFW. Formulas for solving c and d are: Image may be NSFW. |
The post Resizing with maintained aspect ratio applet appeared first on Dino's Anabasis.