How do I set every image to 800 px tall and let the width adjust itself?

With the ratio lock on, type 800 in the height field and the tool works out the width from the picture's own proportions. Each photo keeps its shape, so a portrait image comes out narrower than a square one, and a landscape one wider than both. If you need identical widths as well, type a fixed size and use 'Fit inside' instead.

Published · 3 min read

When height is what matters

Most people think in widths, but some layouts are built on height: a horizontal strip of photos on an About page, a row of partner logos, or a portfolio that shows images side by side in one line. In these cases the images must share a height so the row looks straight, while the widths are free to differ.

The two fields are linked both ways

The ratio lock in the Image resizer works in both directions: type in the width field and the height is calculated; type in the height field and the width is calculated. You do not need to work anything out yourself.

Worked example

A 1200 × 1600 portrait photo: type a height of 800 and the width becomes 600.

A 2000 × 2000 square photo: height 800 gives a width of 800.

A 4032 × 3024 landscape phone photo: height 800 gives a width of 1067.

The result is three images of exactly the same height, 600, 800 and 1067 wide. Place them side by side and their top and bottom edges line up, with none of them distorted.

The steps for each image

  1. Open the tool and choose the image. Its original dimensions fill both fields, and the ratio lock is on.
  2. Type 800 in the height field and watch the width change by itself.
  3. Choose the format and download. The file name carries the new size, such as -600x800.
  4. Choose the next image and repeat. With every new image the fields return to its own size and the lock comes back on, so you just type 800 again.

When width matters too

If your layout is a grid of equal cards, a shared height is not enough, because the widths will differ. Untick the lock, type both numbers, such as 800 × 800, and choose 'Fit inside' to add bands instead of distorting, or 'Fill and crop' to trim the overflow. If a very tall portrait looks too narrow in the strip, crop part of it to a squarer ratio in the Image cropper before setting the height.

Common questions

I typed the height but the width did not change. Why?

Most likely the ratio lock is off, perhaps because you picked a common size earlier, which switches it off. Tick it and type the height again.

Can I type a height larger than the image's own?

You can, but you are enlarging the picture, which adds no detail. The tool will warn you.