The fastest way to make a WordPress site quicker, leaner and easier for Google to understand is to prepare every image before it reaches the Media Library. Most slow sites aren’t slow because of the theme or the host. They’re slow because a 6 MB phone photo is being squeezed into a 400-pixel-wide box.
In Best Practices for Using Images on Your Website we covered the basics: how big is too big, and which format to pick. This post goes deeper: what compression really means, how to size an image for where it will appear, why the work belongs on your computer and not your server, and how it all adds up to faster pages, lower hosting costs and better SEO.
Image compression: the three levers
“Compressing an image” usually means three separate decisions. Get all three right and a 6 MB photo becomes a 150 KB image that looks the same on screen.
1. File format
The format decides how efficiently the pixels are stored. Picking the wrong one can make a file five times bigger than it needs to be.
| Format | Best for | Notes |
|---|---|---|
| WebP | Photos and most graphics | Usually 25–35% smaller than JPEG at the same quality. Supports transparency. WordPress has supported it since 5.8. |
| AVIF | Photos where every KB counts | Often smaller than WebP but slower to encode. Supported since WordPress 6.5 if your server’s image library supports it. |
| JPEG | Photos, when WebP isn’t an option | Universal and reliable. Use quality 70–85. |
| PNG | Screenshots, flat graphics, crisp edges, transparency | Lossless, so photos saved as PNG are huge. Run it through a PNG optimizer. |
| SVG | Logos, icons, simple illustrations | Vector, so it’s sharp at any size and often just a few KB. WordPress blocks SVG uploads by default; enable them only with a plugin that sanitizes the file. |
| GIF | Almost nothing today | For animation, a short MP4 or animated WebP is a fraction of the size. |
Lossy vs. lossless. Lossy compression (JPEG, lossy WebP, AVIF) throws away detail your eye won’t miss. Lossless compression (PNG, lossless WebP) keeps every pixel. For photos, lossy is almost always the right call.
2. File size
File size is what visitors actually download, and it’s the number that matters most for speed. Good targets:
- Hero / full-width banner: under 300–400 KB
- In-content images: under 150–200 KB
- Thumbnails and cards: under 50 KB
- Logos and icons: under 20 KB (SVG is usually far less)
The biggest wins come from the quality setting. Dropping a JPEG or WebP from 100 to about 80 typically cuts the file in half with no visible change. Also strip metadata (EXIF camera data, GPS location, unneeded color profiles). It adds weight, and GPS data can reveal where a photo was taken.
3. File dimensions
Dimensions are the image’s width and height in pixels. File size grows with the area of the image: a 4,000 × 3,000 photo has about 7 times the pixels of a 1,600 × 1,200 version. No amount of compression makes up for shipping pixels nobody sees.
The rule of thumb: make the image no wider than about 2× the largest size it will display at. That headroom keeps it sharp on high-density (Retina) screens. Anything beyond that is wasted.
Size the image for where it will be used
The right dimensions depend on the image’s job on the page, not on the camera that took it. Before you export, ask: how wide will this image ever appear? Your theme’s content width is the usual ceiling; most WordPress content areas sit between 700 and 1,300 px wide.
Match the aspect ratio too. If your blog grid crops featured images to 16:9, crop them to 16:9 yourself, so you choose what stays in frame instead of letting the theme cut off someone’s head.
| Where it appears | Typical display width | Export width | Target size |
|---|---|---|---|
| Full-width hero or banner | 1,200–1,920 px | 1,920–2,400 px | < 400 KB |
| Image inside post content | 700–1,200 px | 1,200–1,600 px | < 200 KB |
| Half-column or side-by-side image | 400–650 px | 800–1,200 px | < 120 KB |
| Blog card / featured thumbnail | 300–450 px | 600–900 px | < 60 KB |
| Logo | 150–300 px | SVG, or PNG at 2× | < 20 KB |
| Favicon / app icon | 16–512 px | Fixed sizes (16, 32, 180, 512) | A few KB |
How WordPress handles sizes
When you upload one image, WordPress quietly makes several copies at different sizes. By default these are:
- Thumbnail: 150 × 150 (cropped)
- Medium: up to 300 px
- Medium Large: 768 px wide
- Large: up to 1,024 px
- 1536 and 2048: for high-density screens
- Plus any sizes your theme or plugins register (often 3–10 more)
WordPress then uses srcset so each visitor’s browser picks the smallest copy that will look sharp on their screen. That only works well when the original is sensibly sized: every copy is generated from what you upload, so a bloated original produces a pile of bloated files.
WordPress also has a “big image” safeguard: anything wider or taller than 2,560 px is scaled down to 2,560 automatically. But the full-size original is still kept on the server, so it doesn’t save the storage.
Optimize and resize before you upload
Optimization plugins are useful, but they’re a safety net, not a strategy. Doing the work on your own computer first gives you better results and a cleaner Media Library.
- You control the quality. You see the result before it goes live, instead of trusting a plugin’s one-size-fits-all setting.
- WordPress builds every copy from a good source. All those thumbnails and
srcsetsizes come out smaller and sharper. - No giant originals left behind. Many plugins compress the copies but keep the huge original, or create extra WebP copies of everything.
- Less server work. Resizing a 24-megapixel photo on shared hosting is slow, and big uploads can time out or hit memory limits.
- Fewer plugins. Every plugin is one more thing to update, slow down or break.
A simple workflow
- Crop to the aspect ratio the layout uses.
- Resize to the export width from the table above.
- Choose the format: WebP for photos, PNG for screenshots, SVG for logos.
- Compress at a quality around 75–85, comparing before and after at 100% zoom.
- Strip metadata (most tools do this by default on export).
- Rename the file descriptively:
red-kayak-on-lake-tahoe.webp, notIMG_4837.webp. - Upload, then add alt text in the Media Library.
Tools that make it easy
- Squoosh (free, in the browser): side-by-side preview, resize, and export to WebP, AVIF or JPEG.
- TinyPNG (free for small batches): drag-and-drop compression for PNG, JPEG and WebP.
- Photoshop, Affinity Photo or GIMP: “Export As” or “Save for Web” with width and quality controls.
- Batch tools like XnConvert or ImageMagick for resizing a whole folder at once.
After upload, a lightweight plugin can still help as a backstop, for example to convert stray JPEGs to WebP. Just make sure it isn’t doubling your storage with extra copies.
What you gain
Saving server storage
Because WordPress keeps the original and every generated size, each upload is really a bundle of files. A photo straight from a phone can take up around 9 MB once WordPress is done with it. The same photo prepared first takes about 0.5 MB.
Multiply that by a few hundred images and the difference is several gigabytes. That matters on hosting plans with storage limits, and it makes every backup, migration and staging copy smaller and faster.
Faster page loads
Images are usually the heaviest part of a page, so they have the biggest effect on speed. Smaller images mean:
- Quicker first view. The main image often decides your Largest Contentful Paint (LCP), one of Google’s Core Web Vitals. Google’s “good” threshold is 2.5 seconds.
- Less data on mobile. Visitors on phones and slow connections aren’t paying to download pixels they never see.
- Lower bounce rates. People leave slow pages, especially on mobile.
- Less load on your server and CDN, which helps when traffic spikes.
Better SEO
Optimized images help search rankings directly, through image search, and indirectly, through page speed and user experience.
- Page experience: Core Web Vitals are part of Google’s ranking signals. Faster LCP and a stable layout help.
- Alt text: describes the image for screen readers and tells search engines what it shows. Write it like you’d describe the photo to someone on the phone, and don’t stuff keywords.
- Descriptive file names:
blue-heron-wetlands.webpgives Google context.DSC_0192.jpggives it nothing. - Width and height attributes: WordPress adds these automatically. They reserve space so the page doesn’t jump as images load, which protects your Cumulative Layout Shift (CLS) score.
- Captions and surrounding text: images near relevant text are easier for search engines to understand.
- Image sitemaps: SEO plugins like Yoast include images in your sitemap so they can be found in Google Images.
Lazy loading: only load what’s on screen
Lazy loading tells the browser to wait on images below the fold until the visitor scrolls near them. A long post with 20 images might load only 2 or 3 at first, so the page appears much faster.
WordPress has done this natively since version 5.5. It adds loading="lazy" to images automatically, no plugin needed:
<img src="kayak-1200.webp" width="1200" height="800" loading="lazy" alt="Red kayak on a calm lake at sunrise">
- Don’t lazy-load the first image. Your hero or featured image should load right away, or it will hurt LCP. WordPress skips lazy loading on the first content image and, since 6.3, marks the likely main image with
fetchpriority="high". Some themes and page builders override this, so check your hero. - Lazy loading doesn’t replace optimization. It delays the download; it doesn’t shrink it. A 3 MB image still costs 3 MB once someone scrolls to it.
- Avoid stacking solutions. If your theme, a speed plugin and WordPress core all lazy-load, they can conflict and cause images to flicker or never appear. Pick one, usually core.
- Background images and sliders set in CSS or JavaScript aren’t covered by core lazy loading. Your theme or a performance plugin has to handle those.
To check it’s working, open your page, right-click an image below the fold, choose Inspect, and look for loading="lazy" on the <img> tag.
- Don’t lazy-load the first image. Your hero or featured image should load right away, or it will hurt LCP. WordPress skips lazy loading on the first content image and, since 6.3, marks the likely main image with
fetchpriority="high". Some themes and page builders override this, so check your hero. - Lazy loading doesn’t replace optimization. It delays the download; it doesn’t shrink it. A 3 MB image still costs 3 MB once someone scrolls to it.
- Avoid stacking solutions. If your theme, a speed plugin and WordPress core all lazy-load, they can conflict and cause images to flicker or never appear. Pick one, usually core.
- Background images and sliders set in CSS or JavaScript aren’t covered by core lazy loading. Your theme or a performance plugin has to handle those.
To check it’s working, open your page, right-click an image below the fold, choose Inspect, and look for loading="lazy" on the <img> tag.
Quick checklist before every upload
- Cropped to the layout’s aspect ratio
- Resized to about 2× its largest display width (and never over 2,560 px)
- Saved as WebP (photos), PNG (screenshots) or SVG (logos)
- Compressed to the target size for its context
- Metadata stripped
- Descriptive, hyphenated file name
- Alt text added after upload
- Hero image not lazy-loaded; everything below the fold is
A few minutes of prep per image pays off on every page view, for as long as the image is on your site.
Further reading: Google’s Learn Images course on web.dev.
Is your Media Library full of oversized images, or does your site just feel slow? Efishinsea Web Development can audit, clean up and optimize your WordPress images, and set things up so new uploads stay lean.
Get in touch with our team and let’s talk about your website.



