Calculate Aspect Ratio

What?
So this is a quick article on how to maintain an aspect ratio when resizing an image.

How?
These are the calculations to work out the new height given the width or the new width given the height:
copyraw
(original height / original width) x new width = new height

(original width / original height) x new height = new width
  1.  (original height / original width) x new width = new height 
  2.   
  3.  (original width / original height) x new height = new width 
Category: Graphic Design :: Article: 662

Add comment

Your rating:

Submit

Accreditation

Badge - Zoho Creator Certified Developer Associate
Badge - Zoho Deluge Certified Developer
Badge - Certified Zoho CRM Developer

Donate & Support

If you like my content, and would like to support this sharing site, feel free to donate using a method below:

Paypal:
Donate to Joel Lipman via PayPal

Bitcoin:
Donate to Joel Lipman with Bitcoin bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4

Ethereum:
Donate to Joel Lipman with Ethereum 0xb038962F3809b425D661EF5D22294Cf45E02FebF

Please publish modules in offcanvas position.