How to calculate
Multiply the width by the height part of the ratio divided by the width part. If height is known, invert the ratio to find width.
Worked example
Use Portrait ratio 4:5 · Known target dimension Target width · Target dimension (px) 1080. The result is 1080 × 1350 px.
Input and result notes
Ratios are written width to height. The result gives the target dimensions for your crop or resize.