How to Resize an Image to Exact Dimensions
4 min read
Every platform wants different pixels: 1080×1080 for Instagram, 1920×1080 for a hero banner, 35×45 mm at 300 DPI for print. Uploading the wrong size means ugly auto-crops or rejected forms.
This guide explains pixels versus print size, aspect ratios, and how to resize precisely without stretching — plus when to crop instead.
1. Pixels, aspect ratio, and why images stretch
An image is a grid of pixels; its aspect ratio is the shape of that grid (16:9 is wide, 1:1 is square). Forcing 16:9 pixels into a 1:1 box without cropping must stretch or squash them.
The aspect-ratio lock exists to prevent exactly that: change the width and the height follows proportionally. Unlock it only when you truly need arbitrary dimensions.
2. Common sizes worth memorising
Social avatars are square and small; banners are wide; stories are tall. Design at exactly the display size or 2× for retina crispness — never 10×, which only wastes bandwidth.
- Instagram post: 1080 × 1080 px (1:1)
- YouTube thumbnail: 1280 × 720 px (16:9)
- Story / reel cover: 1080 × 1920 px (9:16)
- Website hero: 1920 × 1080 px, under 400 KB
- ID print 35×45 mm: 413 × 531 px at 300 DPI
3. Resize or crop? Pick correctly
Resize when the whole picture must survive and only its pixel size is wrong. Crop when the shape is wrong — cutting a wide photo into a square keeps faces natural instead of squeezed.
A typical flow: crop to the target shape first, then resize to the target pixels. Both tools run locally in seconds.
4. ID photos need print math, not guesses
Print sizes are in millimetres, but files are in pixels: pixels = mm ÷ 25.4 × DPI. A 35×45 mm photo at 300 DPI is exactly 413×531 px.
The Passport Photo Maker does this math for standard ID sizes automatically and centre-crops your portrait to fit.
Tools used in this guide
FAQ
Downsizing keeps images sharp. Upsizing beyond the original cannot invent detail and looks soft — always start from the largest source you have.
Keep the aspect-ratio lock on. If the target shape differs from your photo, crop to that shape first.
DPI is irrelevant on screens — only pixel dimensions matter. DPI matters solely for print.
Yes. Resizing preserves the alpha channel when the output stays PNG or WebP.