Optimagio

Audit Your Website for Unoptimized Images: A Step-by-Step Guide

Learn how to systematically identify oversized images, wrong formats, and missing compression using free tools like Lighthouse, WebPageTest, and browser DevTools.

Optimagio Team 4 min read
Audit Your Website for Unoptimized Images: A Step-by-Step Guide

Why Image Optimization Matters More Than Ever

Images typically account for over 50% of webpage weight, making them the largest contributor to slow loading times. Unoptimized images directly impact user experience, conversion rates, and search engine rankings through Core Web Vitals metrics like Largest Contentful Paint (LCP). The good news? Most websites have significant, easy-to-fix image optimization opportunities that can yield immediate performance improvements.

Step 1: Run a Lighthouse Audit for Overall Assessment

Google's Lighthouse, available in Chrome DevTools and as a standalone tool, provides an excellent starting point for identifying image optimization opportunities. It gives you a performance score and specific recommendations for improvement.

  1. 1Open Chrome DevToolsRight-click on your webpage and select 'Inspect', or press F12/Cmd+Opt+I
  2. 2Navigate to LighthouseClick the Lighthouse tab in DevTools (may be under the '>>' menu)
  3. 3Configure and RunSelect 'Performance' category, choose device type (Mobile/Desktop), and click 'Analyze page load'
  4. 4Review ResultsCheck the 'Opportunities' section for 'Properly size images' and 'Serve images in next-gen formats'

Step 2: Dive Deeper with Browser DevTools

While Lighthouse gives you high-level recommendations, browser DevTools provide detailed insights into individual images. The Network and Coverage tabs are particularly valuable for identifying optimization opportunities.

  1. 1Network Tab AnalysisReload page with Network tab open, filter by 'Img', sort by Size to find largest images
  2. 2Coverage Tab CheckUse Coverage tab (in DevTools) to find unused image bytes that could be lazy-loaded or removed
  3. 3Inspect Individual ImagesRight-click any image, select 'Inspect' to see dimensions and check if HTML width/height attributes match actual size
MetricWhat to Look ForOptimization Action
File SizeImages > 100KBCompress or convert format
DimensionsDisplay size < actual sizeResize to maximum display dimensions
FormatJPEG/PNG where WebP/AVIF supportedConvert to modern format
Lazy LoadingImages below fold without loading='lazy'Add lazy loading attribute

Step 3: Test Real-World Conditions with WebPageTest

WebPageTest provides more detailed performance analysis under various network conditions and locations. It's particularly useful for understanding how your images perform for users with slower connections or in different geographic regions.

  1. 1Visit WebPageTest.orgEnter your website URL and choose test location (select one close to your primary audience)
  2. 2Configure Test SettingsChoose connection speed (3G for mobile testing), number of runs, and advanced options if needed
  3. 3Analyze ResultsCheck 'Content Breakdown' for image bytes, 'Waterfall View' for loading sequence, and 'Image Analysis' for optimization suggestions

Step 4: Prioritize and Implement Fixes

With audit data in hand, it's time to prioritize and implement fixes. Focus on the biggest opportunities first—typically the largest images and those contributing most to LCP.

  • Compress largest images first
  • Convert appropriate images to WebP/AVIF
  • Resize images to maximum display dimensions
  • Implement lazy loading for below-fold images
  • Add width/height attributes to prevent layout shifts
Quick Wins (Do First)
  • Compress hero imagesBiggest impact on LCP
  • Resize oversized imagesInstant file size reduction
  • Add lazy loadingImproves initial load time
Strategic Improvements (Plan Next)
  • Format conversionRequires fallbacks for compatibility
  • Responsive imagesNeeds srcset implementation
  • CDN optimizationAdditional configuration required

Step 5: Automate and Prevent Regression

Manual optimization is effective but unsustainable for growing websites. Implementing automated optimization ensures new images are optimized before they reach production and prevents performance regression over time.

Build-Time OptimizationIntegrate image optimization into your build process using tools like sharp or imagemin. Best for static sites and JAMstack applications.
API-Based OptimizationUse image optimization APIs that process images on-demand. Services like Optimagio can handle compression, format conversion, and resizing automatically.
CMS PluginsInstall optimization plugins for WordPress, Drupal, or other content management systems to automatically optimize uploaded images.

Automate image optimization with Optimagio

Doing this by hand for every image does not scale. Optimagio optimizes and converts your images (WebP and AVIF) automatically across your API, web app, and CMS — so every page ships the smallest possible files without manual work. See plans and pricing →

FAQ

Frequently asked questions

How often should I audit my website for unoptimized images?

Perform a full image audit at least quarterly, or whenever you make significant content updates. Automated monitoring through CI/CD can catch issues as they arise.

What's the easiest image optimization fix I can implement first?

Start by compressing your largest images without visible quality loss. Even basic compression can reduce file sizes by 30-70% with minimal effort.

Should I convert all my images to WebP or AVIF?

Prioritize converting frequently accessed images and those above 100KB. Check browser support statistics for your audience before committing to newer formats.

Can unoptimized images affect my search engine rankings?

Yes, since image optimization impacts Core Web Vitals like LCP, which are ranking factors. Faster loading images contribute to better user experience and SEO.

What's the difference between lossy and lossless compression?

Lossy compression reduces file size by permanently removing some image data, while lossless compression reduces size without quality loss by optimizing how data is stored.