Morphio
Menu

Resize WebP image dimensions without stretching the picture

Need a thumbnail that fits a 512-pixel box? Keep the proportions linked and change the longer side. Follow the steps in a separate editor; you do not need to upload your picture to this page.

Resize a copy and keep the original

  1. Open your WebP in Photopea to work in a browser. In Image > Image Size, note its original width and height in pixels. For example, a landscape photograph might be 1600 × 900.
  2. Keep the proportions linked. Set the longer side to your limit and look at the other value before applying. A 1600 × 900 photo reduced to 512 pixels wide should be 288 pixels tall. If the second value stays at 900, cancel and check the link.
  3. Use File > Export As and choose WebP. Check the export dimensions in case another size is set there. Save under a new name, reopen the copy and compare it with the original at the size it will actually appear.

Resize WebP image files for a box or a square

A 512 × 512 maximum leaves room for a 512 × 288 landscape photo. An exact 512 × 512 avatar is a different brief. To fill it without stretching a face, crop a square around the subject first and then scale the square. To keep the full picture, place the resized photo on a square canvas with space above and below.

If the pixel dimensions are already right but the attachment is too large, compress the WebP and compare its bytes instead. A smaller file need not have fewer pixels.

Keep moving images in motion

For animation, use an editor that opens the complete sequence. Photopea opens animated WebP as frame layers. Change the size of the whole image and keep the frame layers; exporting just one visible frame loses the motion. Check the saved animation for frame order, duration, loop behavior and transparent edges.

Decide whether to enlarge

Enlarging a 320-pixel icon to 640 pixels gives it more samples, not more recorded detail. As the GIMP scaling guide explains, the editor estimates the new pixels. Inspect lettering and edges at the intended display size. If a logo still looks soft, use a larger original or its vector artwork.

If a recipient needs another format, save the resized image as JPG for a solid background or make a PNG copy to retain transparency. Both paths produce a still image from the first frame of animated WebP.

Questions and answers

Pixel dimensions, file size and larger copies.