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
Post a Comment