How to fix 'Properly size images' in PageSpeed
The warning means your page downloads pictures much bigger than the space they are shown in. Resize each image to about the size it is displayed (up to twice that for sharp screens), compress it, and let the browser choose a smaller file on small screens.
Pictures are usually the heaviest part of a web page, and a common mistake is uploading them straight from a camera or phone. The browser downloads the whole huge file, then shrinks it to fit. The visitor pays for pixels they never see. This page explains how to spot the problem, fix it on any platform, and keep it fixed.
What the problem is and what people see
A phone photo is often 4000 pixels wide and several megabytes. If your page shows it in a box 400 pixels wide, the browser still has to fetch the full file first. Multiply that by a gallery or a product grid and the page becomes slow to load.
Visitors notice blank gaps where pictures are still arriving, text that jumps as images appear, and long waits on a phone with a weak signal. In PageSpeed Insights the warning is usually called Properly size images, with an estimated saving in KiB. Newer versions of the report may group it under image delivery or word it slightly differently, but the meaning is the same.
Why it matters
This is a speed, search and sales problem, not a security one.
- Speed: the largest picture at the top of a page is often the element that decides your Largest Contentful Paint, one of the Core Web Vitals. A huge file there delays it directly.
- Search: Google uses page experience signals, including speed, as one input among many. It will not rescue weak content, but slow pages can hold back good ones.
- Sales and trust: people on mobile data leave slow pages, and shoppers are less likely to finish a purchase on a page that crawls. Large files also use up your visitors' data plans.
How to check if your site has it
All of these are free.
- PageSpeed Insights (pagespeed.web.dev): enter a page address, open the Mobile results, and look for
Properly size imagesin the opportunities or diagnostics. Expand it to see each file and how many KiB could be saved. - Chrome DevTools: press F12, open the
Networktab, filter byImg, reload the page and sort by size. The biggest files are your first targets. - Inspect one image: right click it, choose
Inspect, and hover over theimgtag. Chrome shows the rendered size and the intrinsic (real file) size. If the file is far bigger than the rendered size, that image is oversized.
Check your home page, your busiest landing pages, and any page with a gallery or product grid. Week 35 of SiteMonday is the image optimisation pack, which looks at this across your site and ends with a written report and a ranked fix list.
How to fix it
The steps are the same on every platform, even if the buttons differ.
- Find the displayed size. Work out how wide the image appears at the widest layout. A picture in an 800 pixel content column is displayed at 800 pixels.
- Resize the file. Aim for no more than about twice the displayed width, so it stays sharp on high density screens. For that 800 pixel column, 1600 pixels is plenty. A full width banner rarely needs more than about 2000 to 2400 pixels.
- Choose a good format. Use JPEG, WebP or AVIF for photos, SVG for logos and icons, and PNG only when you need sharp edges with transparency. WebP and AVIF usually give smaller files at similar quality.
- Compress. Squoosh (squoosh.app) is a free tool that shows a before and after preview. A quality setting around 75 to 85 often looks fine, but check your own pictures.
- Offer several sizes. Use
srcsetandsizesso a phone gets a small file and a desktop gets a larger one. - Set `width` and `height`. This reserves space and stops the page jumping, which also helps with layout shifts.
- Lazy load below the fold. Add
loading=\"lazy\"to pictures further down the page, but not to the main image at the top, which should load as early as possible.
Here is what a well prepared image looks like in HTML:
<img src=\"team-800.webp\"
srcset=\"team-400.webp 400w, team-800.webp 800w, team-1600.webp 1600w\"
sizes=\"(max-width: 800px) 100vw, 800px\"
width=\"800\" height=\"533\"
loading=\"lazy\"
alt=\"The team outside the shop\">
Common platforms
Most platforms can resize images for you, but they cannot undo a badly chosen upload or a theme that asks for the wrong size. Menu names depend on your version and theme.
- WordPress: it creates several sizes of each upload and adds
srcsetautomatically. Problems usually come from a theme or page builder that inserts theFull sizeimage, or from very large originals. See the WordPress guide. - Shopify: modern themes size images through Liquid filters such as
image_urlwith a width, and theimage_tagfilter can addsrcset. Older or customised themes may request the original file. See the Shopify guide. - Wix, Squarespace and Webflow: they serve resized copies, but you still help by uploading images close to the size you need and checking any setting that controls image quality or fit.
- Next.js: the built in
next/imagecomponent handles resizing and formats when you give it correctwidth,heightorsizesvalues.
How to confirm the fix worked
- Clear your site cache and any CDN cache, otherwise you may be testing the old files.
- Run PageSpeed Insights again on the same page, on Mobile. Run it two or three times, because scores move a little between runs.
- Check that
Properly size imagesis gone or the saving is much smaller. - In the
Networktab, compare the total size of images before and after. - Look at the page on a phone and a large desktop screen to make sure nothing looks blurry.
The real world data in PageSpeed Insights covers about the last 28 days, so it improves slowly even after a good fix. Trust the lab test first.
How to stop it coming back
- Agree a maximum upload width with everyone who edits the site, for example 2000 pixels, and resize before uploading.
- Do not upload straight from a camera. Export a web version first.
- After a theme change or redesign, test your key pages again, since new templates can request the wrong image sizes.
- Test a new page in PageSpeed Insights before you promote it.
- Schedule regular checks. SiteMonday finds and explains these problems each week it runs, but the fixing is up to you or your developer.
Step by step for your platform
- Oversized images slowing the page on WordPress
- Oversized images slowing the page on Shopify
- Oversized images slowing the page on Wix
- Oversized images slowing the page on Squarespace
- Oversized images slowing the page on Webflow
- Oversized images slowing the page on WooCommerce
- Oversized images slowing the page on Next.js
Questions
What size should my images be?
Roughly twice the width they are displayed at, so an 800 pixel wide spot needs about a 1600 pixel wide file. Going much beyond that adds weight without any visible gain.
Will compressing images make them look bad?
Not if you stay moderate. A quality setting around 75 to 85 is often hard to tell from the original, but preview each image and adjust.
Should I use WebP or AVIF instead of JPEG?
They usually produce smaller files at similar quality and all current major browsers support them. JPEG is still fine if you resize and compress it well.
Does lazy loading fix oversized images?
No. It delays when a file is fetched, but a huge file is still huge once it loads. Do not lazy load the main image at the top of the page.
Why does PageSpeed still complain after I resized the images?
Often a cache is serving old files, or the theme still requests the full size version. Clear caches, then inspect the image to compare its rendered size with its file size.
Is this warning a security problem?
No. It affects speed, search visibility and sales, not the safety of your site.