Solve for max
height
Original
Proportions
Constrained
Proportions
px
px
Height
Width
px
Solve by max
width
instead