I have an image that is (just for example, can be any size):
599 original width 599 original height
and a destination aspect ratio for example (can be any):
I want to scale down the image and make it exactly the aspect ratio, a simple multiplication gives only:
299.5 x 599
while I expect
299 x 598
How to get the expected result?
Sorry for my bad English, I find it hard for me to describe a mathematics question well.