How to Resize an Image Without Stretching It

By 2 min read

To resize an image without stretching it, keep its aspect ratio, the ratio of width to height. Change one side and let the other follow: new height = new width × original height ÷ original width. A 4000 × 3000 photo resized to 1200 pixels wide becomes 1200 × 900.

Working out the other side

Original New width New height
4000 × 3000 (4:3) 1200 900
6000 × 4000 (3:2) 1500 1000
1920 × 1080 (16:9) 1280 720
3000 × 3000 (1:1) 1080 1080

Fit inside a box

The image resizer has two modes:

  • Contain keeps the shape and makes the image as large as possible inside the width and height you enter. A 4000 × 3000 photo in a 1200 × 800 box comes out at 1067 × 800.
  • Stretch forces the exact size you type, which distorts the picture if the shape is different.

Use contain unless you really need exact dimensions and the shapes already match.

Need a different shape? Crop first

When a site needs a square or a tall image, crop to that shape before resizing. The image cropper crops to 1:1, 4:5, 16:9, 9:16, 4:3 or 3:2 and lets you keep the centre, top, bottom, left or right. Cropping a 4000 × 3000 photo to 4:5 from the centre gives 2400 × 3000, which you can then resize to any 4:5 size, such as 1080 × 1350.

Avoid enlarging small images

Resizing down keeps images sharp. Resizing up only stretches the existing pixels, so a small image enlarged a lot looks soft or blocky. Start from the largest original you have.

File size after resizing

Fewer pixels usually means a smaller file. If it is still too large for an upload limit, run it through the image compressor.

Splitting instead of shrinking

For a panorama or a grid post, the image splitter cuts one image into equal tiles by rows and columns, such as 1 row of 3, so each piece can be posted in order.

Limits

The resizer works on one image at a time, up to 25 MB and 40 megapixels. PNG files stay PNG, while JPG and WebP are saved as JPG. Camera details and other metadata are not kept.

Questions and answers

How do I keep the aspect ratio when resizing?

Change only one side and calculate the other: new height = new width × original height ÷ original width. Or use a fit-inside (contain) mode.

Can I make a small image bigger without losing quality?

Not really. Enlarging spreads existing pixels, so the image looks softer. Start from a larger original if you can.

More from the blog