Images are usually the biggest performance problem on websites. A single unoptimised photo can be larger than your entire HTML, CSS, and JavaScript combined. I’ve seen 8MB images on homepages. That’s insane.
The good news? Image optimisation is straightforward once you know what you’re doing. You can typically reduce image file sizes by 60-85% without visible quality loss. Your site loads faster, Google ranks you higher, and visitors don’t bounce while waiting for photos to load.
Let me show you exactly how to optimise images properly.
Why Image Optimization Matters
Images account for roughly 50-70% of total page weight on most websites. If your page is 3MB, probably 2MB of that is images.
A Bondi real estate site was loading 6.2MB per page, almost all images. Their average load time was 8.4 seconds on 4G mobile. We optimised the images down to 850KB total. Load time dropped to 2.1 seconds. Bounce rate fell from 62% to 38%.
Beyond speed, image optimisation affects:
- Mobile data usage (your visitors on phones will thank you)
- Server bandwidth costs (if you pay for data transfer)
- Google rankings (page speed is a ranking factor)
- User experience (nobody enjoys waiting for images)
The best part? Proper image optimisation is invisible to visitors. They see the same quality images, just faster.
Understanding Image Formats
Choosing the right format is the first decision. Each has specific uses.
JPEG (or JPG)
Best for: Photographs, complex images with gradients or many colours.
JPEGs use lossy compression, meaning you trade some quality for smaller file size. The trick is finding the sweet spot where the file is small but quality loss isn’t noticeable.
Typical use: Product photos, team headshots, blog post images, any photograph.
File size: A 2000x1500px photo might be 800KB-2.5MB unoptimised, or 80KB-250KB properly optimised.
PNG
Best for: Graphics with transparency, logos, icons, text-heavy images, screenshots.
PNGs use lossless compression. Quality stays perfect, but file sizes are larger than JPEG for photographs.
Typical use: Your logo, icons, any image needing transparency, diagrams with text.
File size: A simple logo might be 15KB-80KB. A complex screenshot could be 200KB-800KB.
WebP
Best for: Everything, if you can use it.
WebP is a modern format developed by Google. It delivers JPEG-quality images at 25-35% smaller file sizes. It supports both lossy and lossless compression, plus transparency.
The catch: It requires serving different formats to different browsers (though browser support is now excellent at 96%+).
Typical use: Replace JPEGs and PNGs across your site with WebP versions, with JPEG/PNG fallbacks for older browsers.
File size: That 150KB JPEG becomes a 95KB WebP. That 300KB PNG becomes a 180KB WebP.
SVG
Best for: Logos, icons, simple graphics.
SVG is vector-based, so it scales perfectly to any size without quality loss. File sizes are tiny for simple graphics.
Typical use: Logo, icons, simple illustrations, geometric shapes.
File size: A logo might be 2KB-15KB. Much smaller than PNG equivalents.
Don’t use SVG for photographs. It doesn’t work that way.
Format Decision Tree
Quick reference for choosing:
- Photograph? Use WebP (with JPEG fallback)
- Logo or icon? Use SVG if possible, otherwise WebP/PNG with transparency
- Screenshot or diagram? Use WebP (with PNG fallback)
- Simple graphic or illustration? Use SVG if vector, WebP/PNG if raster
Compression Levels and Quality Settings
This is where the magic happens. Compression reduces file size while trying to maintain visual quality.
JPEG Compression
JPEG quality ranges from 0 (terrible quality, tiny file) to 100 (perfect quality, huge file).
The sweet spot for web use: 75-85 quality.
Here’s what I found testing a 2000x1500px photo:
- Quality 100: 2.4MB, visually perfect
- Quality 90: 850KB, visually identical to 100
- Quality 80: 420KB, virtually indistinguishable from 100
- Quality 70: 280KB, very minor quality loss, acceptable for most uses
- Quality 60: 210KB, noticeable quality degradation
- Quality 50: 160KB, obvious quality problems
For most website images, quality 75-80 is perfect. You get 75-85% file size reduction with no visible quality loss to average viewers.
Product photos where detail matters? Use 80-85. Background images or decorative photos? 70-75 is fine.
PNG Compression
PNG compression is lossless, so “quality” doesn’t apply the same way. Instead, you optimise by removing unnecessary metadata and using better compression algorithms.
Tools like TinyPNG or ImageOptim can reduce PNG file sizes by 50-70% without any quality loss. It’s pure optimisation of how the data is stored.
WebP Settings
For WebP, quality 75-82 gives excellent results. Because WebP’s compression is more efficient than JPEG, you can often use slightly lower quality numbers for the same visual result.
I typically use quality 78 for WebP photos and quality 85 for WebP versions of PNGs with transparency.
Responsive Images and Proper Sizing
Here’s a mistake I see constantly: uploading a 3000x2000px image to use it at 600x400px on the page.
Your browser downloads the full 3000x2000px version, then shrinks it for display. You’re wasting 25x more bandwidth than necessary.
The Right Dimensions
Never upload images larger than they’ll be displayed. If your content area is 800px wide, there’s zero reason to upload 2400px wide images.
Standard maximum widths I use:
- Full-width hero images: 1920px wide (covers most desktop screens)
- Content area images: 1200px wide maximum
- Sidebar images: 400px wide
- Thumbnail images: 300px wide
- Gallery thumbnails: 500px wide
For height, maintain the aspect ratio. If your original is 4000×3000 (4:3 ratio) and you need 1200px wide, make it 1200×900.
Retina/High-DPI Displays
Modern phones and laptops have high-resolution displays. A “one-size-fits-all” approach: serve images at 1.5x the display size.
If an image displays at 800px wide on the page, upload it at 1200px wide (800 x 1.5). This looks sharp on retina displays without being excessively large.
Responsive Image Techniques
For maximum efficiency, serve different image sizes to different devices. A mobile phone doesn’t need the 1920px desktop image.
Modern HTML supports this with srcset:
<img src=”photo-800.jpg”
srcset=”photo-400.jpg 400w,
photo-800.jpg 800w,
photo-1200.jpg 1200w”
sizes=”(max-width: 600px) 400px,
(max-width: 1200px) 800px,
1200px”
alt=”Description”>
Browsers automatically choose the appropriate size based on screen width. A phone gets the 400px version, a tablet gets 800px, desktop gets 1200px.
Most modern CMSs can generate these automatically. WordPress does this out of the box when you upload images.
Lazy Loading
Lazy loading delays loading images until they’re about to enter the viewport. Images “below the fold” don’t load until users scroll near them.
This dramatically reduces initial page load. A page with 30 images might initially load only 3-4 that are visible, saving bandwidth and time.
Modern browsers support native lazy loading:
<img src=”photo.jpg” loading=”lazy” alt=”Description”>
That’s it. One attribute. Browser support is 94%+.
For WordPress, lazy loading is built in (since WordPress 5.5). For other platforms, check if it’s included or add a lightweight lazy loading script.
A Surry Hills portfolio site had 60 images on their homepage. Without lazy loading, initial load was 4.2MB. With lazy loading, it dropped to 1.1MB (only loading the 12 visible images initially). Load time went from 6.3 seconds to 2.4 seconds.
Important: Don’t lazy load images in the initial viewport (above the fold). You want those to load immediately.
Tools for Image Optimization
You don’t need expensive software. Here are the tools I actually use.
For Individual Images
TinyPNG / TinyJPG (tinypng.com) – Free web tool. Drag and drop images, download optimised versions. Handles JPEG, PNG, and WebP. Reduces file sizes by 60-80%. Limit: 20 images at a time, max 5MB each.
I use this daily for client projects. It just works.
Squoosh (squoosh.app) – Google’s free image optimiser. More control over compression settings. Great for testing different formats and quality levels side-by-side. Works offline as a PWA.
ImageOptim (Mac only, imageoptim.com) – Free desktop app. Drag in images, get optimised versions. Removes metadata, compresses efficiently. I keep this in my dock.
RIOT (Windows, luci.criosweb.ro/riot/) – Free, similar to ImageOptim but for Windows. Good visual quality preview.
For Bulk Processing
ImageMagick (command line, free) – Powerful but requires technical knowledge. Can process hundreds of images with scripts. I use this for large migrations.
Example command to resize and optimise all JPEGs in a folder to 1200px wide at 78% quality:
mogrify -resize 1200x -quality 78 *.jpg
XnConvert (free, desktop) – Batch processing with a GUI. Good for non-technical users who need to process many images.
WordPress Plugins
If you’re on WordPress, plugins can automate optimisation.
ShortPixel (100 images/month free, then $4.99/month) – Automatically optimises uploads. Generates WebP versions. Can optimise existing images in bulk. Lossy and lossless options.
This is my go-to for WordPress sites. Set it up once, forget about it.
Imagify ($5.99/month unlimited) – Similar to ShortPixel, made by the WP Rocket team. Excellent quality and reliable.
Smush (free with limitations, $6/month pro) – Popular, long-established. Free version is decent but limited. Pro version adds WebP and better compression.
EWWW Image Optimizer (free and paid) – Good free option. Can compress locally (on your server) or use their paid cloud service for better results.
For Other Platforms
Wix: Built-in image optimisation (you can’t control much). Use TinyPNG before uploading for better results.
Squarespace: Automatic optimisation and responsive images. Generally good, but pre-optimise large files.
Shopify: Automatic image optimisation. Apps like TinyIMG or Image Optimizer can provide additional compression.
Step-by-Step Optimization Workflow
Here’s my exact process for optimising images before uploading.
Step 1: Resize to Maximum Display Dimensions
Determine the largest this image will display. Resize to 1.5x that dimension (for retina displays).
If it displays at 800px wide, resize to 1200px wide.
Use Photoshop, Preview (Mac), Paint.NET (Windows), or any image editor. Or use Squoosh for web-based resizing.
Step 2: Choose the Right Format
Photo? JPEG or WebP. Logo/icon? SVG or PNG. Screenshot? PNG or WebP.
Step 3: Compress
For JPEGs: Export at quality 75-80.
For PNGs: Save normally, then run through TinyPNG.
For WebP: Use Squoosh to convert from JPEG/PNG at quality 78.
Step 4: Strip Metadata
TinyPNG and ImageOptim do this automatically. If you’re using Photoshop, choose “Export for Web” which removes metadata by default.
Metadata (camera info, GPS data, edit history) can add 50KB-200KB to images. You don’t need it on websites.
Step 5: Upload
Add descriptive filenames (photo-sydney-office-interior.jpg, not IMG_2847.jpg).
Add alt text for accessibility and SEO.
Before and After: Real Examples
Let me show you actual file size reductions from Sydney business websites I’ve optimised.
Example 1: Chatswood Medical Practice Homepage Hero
- Original: 3840x2560px, 4.2MB JPEG
- Optimised: 1920x1280px, 220KB WebP (with 285KB JPEG fallback)
- Reduction: 94% smaller (WebP) or 93% smaller (JPEG)
- Visible quality difference: None
Example 2: Newtown Restaurant Menu Photo
- Original: 2400x1800px, 1.8MB JPEG
- Optimised: 1200x900px, 145KB JPEG
- Reduction: 92% smaller
- Visible quality difference: Minimal, acceptable
Example 3: Bondi Yoga Studio Logo
- Original: 2000x800px PNG, 380KB
- Optimised: SVG, 8KB
- Reduction: 98% smaller
- Quality: Perfect at any size (vector)
Example 4: Pyrmont Architecture Portfolio Page
- Original: 12 images, 16.8MB total
- Optimised: Same images, WebP format with responsive sizing, 2.1MB total
- Reduction: 87% smaller
- Load time improvement: 11.2 seconds to 3.4 seconds
Special Cases and Considerations
Product Photography
E-commerce images need to look good when zoomed. Use slightly higher quality settings (82-85 for JPEG, 80-82 for WebP).
Provide multiple sizes: thumbnail (300-500px), main product view (800-1200px), and zoom/lightbox version (1600-2000px). Load the appropriate size for each context.
Background Images
Large background images can be more aggressively compressed. Quality 70-75 is often fine because they’re decorative, not the main focus.
Consider using CSS gradients or patterns instead of images where possible. A gradient is 0.1KB versus 200KB for an image.
Image Galleries
Load thumbnail versions initially, full-size versions only when clicked. A 100x100px thumbnail should be 5-15KB, not 300KB.
WordPress and most gallery plugins handle this automatically, but verify by checking actual file sizes in the Network tab of browser developer tools.
Animated Content
Avoid animated GIFs if possible. They’re massive. A 10-second GIF can easily be 5-15MB.
Better alternatives:
- Short videos (MP4) – often 70-90% smaller than equivalent GIFs
- Animated WebP – better compression than GIF
- CSS animations – 0 bytes, pure code
If you must use GIFs, run them through tools like Ezgif.com to optimise them.
Testing Your Results
After optimisation, verify the improvements.
Google PageSpeed Insights (pagespeed.web.dev) – Tests your page and specifically identifies oversized images. Aim for “Properly size images” and “Serve images in next-gen formats” to pass.
GTmetrix (gtmetrix.com) – Shows every image loaded, file sizes, and recommendations. The “Images” tab lists specific problem images.
Chrome DevTools – Network tab shows all images loaded, their file sizes, and load times. Sort by size to find the biggest culprits.
Before/after comparison: Note your total page size and load time, optimise images, test again. You should see 40-70% reduction in page size for image-heavy pages.
Common Image Mistakes
Watch out for these issues I see regularly.
Using PNG for Photographs
A photo as PNG might be 2.5MB. The same photo as JPEG at quality 80 is 180KB. That’s 14x smaller with no visible quality difference.
Not Using WebP
WebP provides 25-35% smaller files than JPEG/PNG. If you’re not using it, you’re wasting bandwidth. Most CMSs and optimisation plugins can generate WebP versions automatically.
Uploading Huge Originals
Your 6000x4000px camera RAW export doesn’t belong on your website. Resize first, always.
Ignoring Mobile
Serving 1920px images to phones is wasteful. Use responsive images to serve appropriately sized versions.
Too Aggressive Compression
Yes, you can compress that product photo down to 40KB. But if it looks terrible and pixelated, you’ve hurt your credibility. Find the balance.
Monitoring Image Performance
Set up ongoing monitoring so images don’t become a problem again.
Monthly checks:
- Run PageSpeed Insights on key pages
- Check total page size in GTmetrix
- Review largest images in Chrome DevTools
- Test on mobile (actual device, not just desktop browser)
For WordPress, plugins like ShortPixel continue optimising new uploads automatically. Verify they’re actually working occasionally.
Image Optimization Checklist
Before uploading any image:
- Resized to maximum display dimensions (+ 50% for retina)?
- Correct format chosen (JPEG/PNG/WebP/SVG)?
- Compressed appropriately (quality 75-85)?
- Metadata stripped?
- Descriptive filename used?
- File size reasonable (under 200KB for most images)?
For existing websites:
- Audit current image sizes (GTmetrix or PageSpeed Insights)
- Identify images over 300KB
- Re-optimise or replace oversized images
- Implement lazy loading
- Set up automatic optimisation for future uploads
- Test results and verify improvements
The Business Impact
Image optimisation isn’t just technical housekeeping. It affects your bottom line.
A Paddington interior designer reduced their portfolio page from 8.9MB to 1.4MB by optimising images. Their bounce rate dropped from 58% to 34%, and time on page increased from 1.2 minutes to 3.8 minutes. More people saw their work, more people contacted them.
A Mosman e-commerce store selling homewares cut product page load times from 5.2 seconds to 1.8 seconds through image optimisation. Their conversion rate increased from 1.8% to 2.6%. Same traffic, 44% more sales.
Google’s research shows that 53% of mobile visitors abandon sites that take over 3 seconds to load. If your images are causing slow loads, you’re losing half your mobile traffic.
Your Action Plan
Here’s what to do right now:
- Test your site with PageSpeed Insights – identify image issues
- Choose an optimisation tool (TinyPNG for manual, ShortPixel for WordPress automation)
- Audit your 10 most important pages for oversized images
- Re-optimise those images following the workflow above
- Implement lazy loading if not already active
- Set up automatic optimisation for new uploads
- Test again and measure the improvement
For new images going forward, optimise before uploading. It takes 30 seconds per image and saves you from performance problems later.
Image optimisation is one of the highest-impact, lowest-effort improvements you can make to your website. Most sites see 50-70% reduction in page size just from proper image handling.
If you’d rather have someone audit and fix your image issues professionally, Sites By Design can help. We’ve optimised images for hundreds of Sydney businesses and know exactly what works. Get in touch and we’ll review your site and give you a clear action plan.