FrameFit field notes

Calculate new image dimensions without stretching

Keep proportions, choose a rounding rule and know when cropping is unavoidable.

Calculate proportional dimensions →

To resize an image without stretching it, change width and height by the same factor. Entering unrelated output dimensions changes the shape unless the editor crops or adds empty space.

Calculate the missing dimension

If you know the desired width, multiply it by original-height/original-width to get the proportional height. FrameFit shows this value in “Height at target width,” independently of the canvas fit mode.

Original:  1600 × 900
New width: 1000
New height = 1000 × 900 / 1600
           = 562.5 px

Choose how to handle fractions

A pixel-based export usually needs whole-number dimensions. Rounding 562.5 to 563 introduces a small ratio difference. If your workflow requires an exact 16:9 integer size, choose a width divisible by 16, such as 992 or 1008, with the corresponding height divisible by 9.

FrameFit displays the computed height to three decimal places and also shows a nearest-integer suggestion. It does not silently force every result to a familiar ratio.

Do not confuse resizing with cropping

If your target canvas is square and the source is landscape, proportional resizing alone cannot fill it. Use contain to keep all of the source with empty space, or cover to fill the square with a crop. Check the source area visible figure to understand how much of the original remains.

Apply the result in an editor

The downloadable SVG is a canvas diagram for planning. It contains no source photograph and does not perform image resampling. Use it as a layout reference, then export the actual asset from your editor.

Reference: MDN aspect-ratio.