Skip to content
Framewise

How to resize an image without cropping it

If the target canvas has a different aspect ratio from your image, something has to give: either you crop, or you pad. Padding keeps the whole picture.

Last reviewed 2026-01-15

Fit instead of fill

Fit scales the image until it fits entirely inside the canvas, leaving empty space on two sides. Fill scales until the canvas is covered and trims the overflow. When nothing can be lost, choose fit.

Choosing a background

White reads as clean and neutral on light feeds; black suits cinematic and dark imagery; a colour sampled from the image itself makes the padding feel deliberate rather than accidental. Transparent works only if you export PNG or WebP.

Or change the canvas instead

Sometimes the better answer is a different destination. If your photo is 4:3 and you're forcing it into 9:16, consider whether a 4:5 post would serve the image better than a heavily padded story.

Sources

  • MDN Web Docs — Canvas API