math - Calculating Largest Possible Rectangle -


i'm uploading images website. they're sorts of different dimensions. how can determine largest 4:3 rectangle out of particular image without rotating image?

if aspect ratio less 4:3, keep original width , use height of width*3/4. if aspect ratio greater 4:3, keep original height , use width of height*4/3.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -