On this page11 sections

Why Images Are Such a Common Speed Problem
To optimize images for website speed, start by finding which ones are heavy. Open a contractor website on a phone and check what is slow. Often, it is the images. A landscaper uploads a full-size photo straight from a phone for the homepage hero. An HVAC company has dozens of portfolio photos on one gallery page, each several megabytes. A roofer's storm damage post has uncompressed before-and-after shots that make the page crawl.
Check which resources are actually slowing the page. Large images are a common candidate, but scripts, fonts, server response and other factors can also matter. Measure the change after optimizing an image.
What Is the Best Image Format for a Website?
Different formats are good at different things. Using the wrong format means a bigger file for no visual gain.
JPEG. The long-standing default for photos. Good compression, with some quality loss. Use for photos with lots of colors and gradients.
PNG. Use only for logos, icons or images that need transparency. A photo saved as PNG is usually much larger than the same photo as JPEG, with no visible gain.
SVG. Use for logos, icons and simple graphics. Scales to any size with no quality loss and is usually a fraction of the file size.
WebP. A modern format from Google. Google's WebP documentation reports lossy WebP files are 25 to 34 percent smaller than comparable JPEGs. Supported by every major browser since 2020.
AVIF. Newer still, and often smaller than WebP at similar quality. Supported by current versions of Chrome, Edge, Firefox and Safari since early 2024 (see Can I use: AVIF), so it can be the default with a fallback for older browsers.
For a contractor site in 2026, a sensible setup for most photos is AVIF first, then WebP, then JPEG as a fallback. SVG for logos. PNG only when you specifically need transparency.
Right-Size Before You Upload
The biggest mistake on contractor websites is uploading the original photo straight from a phone or camera. Modern phones produce photos thousands of pixels wide and often several megabytes each. Your website rarely needs more than 1600 pixels wide for a hero image and 800 to 1200 for most other photos.
A good rule of thumb for sizing:
- Hero images: 1600 to 2000 pixels wide max
- Service page banners: 1200 to 1600 pixels wide
- Blog post images: 800 to 1200 pixels wide
- Thumbnails and gallery tiles: 400 to 600 pixels wide
- Logos: Export at 2x the displayed size, then compress
Resizing before upload can cut file weight sharply before you even compress. The website speed testing guide shows how to measure the impact.
Compress, Then Check
Once you have the right size, compress the file. Compression removes visual data the eye does not notice. Done right, a large photo can shrink to a fraction of its size with no visible loss.
Free tools that work well:
- Squoosh (squoosh.app). Browser-based, made by Google. Lets you compare formats side by side.
- TinyPNG (tinypng.com). Handles JPEG, PNG and WebP. Drag, drop, download.
- ImageOptim (Mac) or FileOptimizer (Windows). Batch process whole folders at once.
For most photos, aim for under 200 KB. Hero images can go up to 300 KB if needed. Anything over 500 KB on a webpage needs justification.
If you are running WordPress, plugins like ShortPixel, Smush or Imagify can automate this. On a framework like Next.js, the built-in image component handles much of this work. The Next.js versus WordPress comparison covers how much of this the platform can handle.
Serve Responsive Images
A phone does not need the same image as a desktop. Serving a 1600-pixel image to a small phone screen wastes data and slows the page. Responsive images solve this by serving the right size to each device.
Modern HTML supports this with the srcset attribute. You provide several sizes of the same image, and the browser picks the best one for the screen. If your CMS or framework handles images well, this is automatic. If you are hand-coding image tags, you write it yourself or use a service like Cloudinary or imgix.
This pairs well with a content delivery network, which can resize and serve images from a location closer to your visitor.
Lazy Loading Images: Don't Load What You Don't See
Lazy loading delays loading an image until the visitor scrolls near it. The first screen loads faster, and the rest loads as needed.
You do not need a plugin or library for this. Browsers support it natively with loading="lazy" on the image tag. Set it on images below the fold. Leave it off the hero image and anything visible on the first screen, because lazy loading those slows your Largest Contentful Paint.
This is one of the easiest performance wins available. It costs nothing, takes minutes to add and can cut initial page weight a lot on image-heavy pages like portfolio galleries.
Alt Text for SEO and Accessibility
Every meaningful image needs alt text. It serves two purposes: accessibility (screen readers read alt text aloud for people who cannot see the image) and search (Google uses alt text, along with the page around it, to understand what an image shows).
Useful alt text describes meaningful image content in its page context. Decorative images should have empty alt text so they do not add noise for screen-reader users. Avoid generic labels and keyword stuffing.
Good: "Tankless water heater installation in a residential garage in Boise"
Bad: "water heater," "image1.jpg," or "plumber plumbing plumber Boise emergency plumber"
For a roofing company posting a portfolio image, alt text like "New asphalt shingle roof installation on a two-story home in Meridian" describes the image and reinforces both the service and the location. This pairs with the broader web accessibility basics that every contractor site should follow.
Filenames and Image SEO
Before you upload, rename the file. Phones default to names like IMG_4827.jpg, which says nothing about the image. Descriptive filenames give Google more context.
Good: boise-tankless-water-heater-install.jpg
Bad: IMG_4827.jpg
Use hyphens between words, all lowercase, no spaces or special characters. Keep filenames short and descriptive. Combined with good alt text and useful context on the page, well-named images give visual trades like landscaping, painting, hardscaping and roofing a better chance of appearing in Google Images.
Common Image Mistakes That Hurt Performance
- Uploading raw phone photos. Multi-megabyte images slow mobile pages immediately.
- Using PNG for photos. PNGs are for transparency and logos, not landscape shots.
- Skipping width and height attributes. Missing dimensions cause layout shift, which hurts your CLS score. The Core Web Vitals guide covers why this matters.
- Background videos used as decoration. A looping hero video can add a lot of weight and slow mobile load times.
- Lazy loading the hero image. Lazy loading delays the largest visible element on the page, hurting LCP.
- Hundreds of images on one gallery page with no pagination. Even with lazy loading, the page becomes heavy to build and scroll.
The website audit walkthrough explains how to find and fix these issues across an existing site.
A Simple Workflow for Every New Image
When you add an image to your website, follow this short checklist:
- Resize to the appropriate display width (usually under 2000 pixels)
- Compress with Squoosh or TinyPNG
- Convert to AVIF or WebP if your CMS supports it
- Rename the file to be descriptive and hyphen-separated
- Upload with width and height attributes set
- Add descriptive alt text
- Add
loading="lazy"if it is below the fold
It takes a minute or two per image once you have the routine down, and the effect adds up across a site.
A rebuild can clear out years of image bloat at once. A Custom Website Design build from webIQ includes image optimization, WebP images, lazy loading and descriptive alt text. See what a custom build includes, browse examples across trades, or create a new site yourself with webIQ Self-Service, free to build.
Frequently Asked Questions
What is the ideal image size for a website?
For most photos on a webpage, target under 200 KB after compression. Hero images can go up to 300 KB. Anything over 500 KB needs a strong reason. Formats like AVIF and WebP make those targets easier to reach without losing visible quality.
Should I use WebP or AVIF in 2026?
Use AVIF as the primary format with WebP and then JPEG as fallbacks. AVIF is often smaller than WebP at similar quality and is supported by current versions of Chrome, Edge, Firefox and Safari since early 2024.
Does image optimization really affect Google rankings?
Indirectly. Image weight often affects Largest Contentful Paint, one of the Core Web Vitals that are part of Google's page experience signals. Well-described images can also appear in Google Images. Neither guarantees a ranking, but both make the site better for visitors.
Will compressing my images make them look bad?
Not if you do it carefully. Moderate compression is usually hard to tell from the original, especially on a phone screen. Compare before and after to confirm.
Do I need a plugin to lazy load images?
No. Modern browsers support lazy loading natively with the loading="lazy" attribute on the image tag. Just leave it off the hero image and anything visible on the first screen to avoid hurting your Largest Contentful Paint.
Follow webIQ on Google
Add webIQ as a preferred source and Google will show more of our guides when you search. It takes one tap, and you can undo it any time from the same screen.
Make webIQ a preferred source