I am working on a software 2D model where we need to work with aspect ratios. My boss gave us a formula which defines it as:
aspect ratio = height of image/ width of image
Now we are using a cropping library over this which has a different formula. For them:
aspect ratio = width of image/ height of image
I am very poor in math, being more of a designer guy. So my question is, which one is correct? Or are they both (based on context perhaps?).
Because of this difference in the formula, the image and the cropping overlay on top of it is mismatched. So I guess another question I have is, if I have an aspect ratio, is there any way I can pivot it to make landspaces into portraits or vice-versa?
Any help is very, very much appreciated!!