Most images on a website are the wrong size in one of two ways: they are far larger than the space they occupy, so the page loads slowly, or they are smaller than the space they occupy, so the browser stretches them and everything looks soft. Both problems are fixed by resizing to the dimensions the layout actually uses.
Work out the size your layout needs
Open the page in a browser, right-click the image and choose Inspect. The developer tools show two numbers: the rendered size in CSS pixels and the natural size of the file. If the natural size is much bigger than the rendered size, you are shipping wasted bytes. If it is smaller, the browser is upscaling and you are losing sharpness.
Multiply the rendered width by the pixel density you want to support. A 400px-wide card on a phone with a 2× screen needs an 800px-wide file. A 3× phone needs 1200px. Serving one file at 2× is the usual compromise: sharp on most devices, still reasonable in size.
Typical sizes by placement
- Full-width hero or banner: 1600 to 2000px wide, 16:9 or wider. Keep it under roughly 250 KB after compression.
- In-article image: 800 to 1200px wide, matching the text column.
- Blog card or thumbnail: 400 to 600px wide in a 4:3 or 16:9 crop, under 80 KB.
- Profile or author avatar: 200 to 400px square, usually shown as a circle.
- Social share preview: 1200×630px, the size most networks crop from.
If your theme or CMS documents its own sizes, use those numbers. Guessing wastes a round of exports.
Resize and crop are different jobs
Resizing changes the pixel dimensions and keeps the whole picture. Cropping removes pixels from the edges. When the target slot has a fixed ratio, such as a 16:9 hero, resizing a square photo to fill it will stretch faces. Crop to the ratio first, then resize to the final width.
Use Resize Image with the aspect ratio lock on when you are scaling proportionally, and Crop Image when you need a specific ratio like 1:1 for avatars or 16:9 for banners. If your CSS uses object-fit: cover, the browser crops for you, but it cannot recover detail it never had, so the source still needs to be large enough for the slot.
Do not upscale small photos
Enlarging a 300px image to 1200px does not add detail. The result is a soft, slightly blocky image that looks worse than the small original displayed at its natural size. Always start from the largest copy you have: the original camera file, the design export, or the client's source asset. If only a small copy exists, choose a layout that displays it smaller instead of stretching it.
Pick the format before the final export
Photographs and screenshots with gradients compress well as JPG or WebP. Logos, icons, screenshots with flat colour and anything with transparency belong in PNG or WebP. WebP is smaller than JPG at the same visible quality and is supported by every current browser, so it is a safe default for site images. Use Image to WebP after resizing rather than before, so you only convert the file you are actually publishing.
Compress after you resize
Resizing removes pixels, compression removes data the eye is less likely to notice. Doing them in that order gives the smallest usable file. Run Compress Image on the resized output and check the result at 100% zoom, especially on text and sharp edges. Our guide on compressing images without losing quality covers which settings to change when a photo starts to look muddy.
Keep the file name and alt text useful
Rename files to something descriptive like team-meeting-2026.jpg instead of IMG_4821.jpg, and give every image an alt attribute that describes what it shows. Screen readers rely on alt text, and search engines use both the file name and the alt text to understand the image. Avoid stuffing keywords into either one.
Images that end up in documents
If the resized images are going into a report, invoice or scanned form, convert them in bulk with Image to PDF after resizing. Compressing first keeps the PDF under email and portal limits; the JPG to PDF guide walks through the order of steps.
Common mistakes to avoid
- Resizing with the aspect ratio unlocked, which stretches the image.
- Exporting at exactly 1× and then wondering why photos look soft on modern phones.
- Uploading a 4000px camera file for a 400px thumbnail.
- Converting to WebP before cropping, then cropping the converted file again.
- Saving PNG for photographs, which can triple the file size for no visible gain.
When in doubt, resize to the pixel width the page renders at 2×, compress, and check the result on a real phone. That single pass fixes most of the speed and sharpness complaints a site gets.
Start now with Resize Image.
No comments yet. Start the discussion.