Websites & Design

Before and after photos for your website: consent, layout, alt text and speed

Before and after photos on a business website: client consent in Canada, layout, compression, alt text, captions and a gallery that loads fast.

The short answer

A good before and after gallery uses the same angle and lighting for both shots, carries a one-line caption saying what was done, and is published only with the client's clear consent. Size and compress each photo, give every image a useful alt text and set width and height, and lazy-load images below the first screen so the page stays fast.

Why these photos work, and for whom

For trades, landscapers, cleaners, dentists and clinics with visible results, a before and after pair is the most believable proof you can show. It answers "can they do this?" without a claim. It also fails quickly when done badly: mismatched angles, a dark "before" and a bright "after", or a gallery of forty unlabelled images.

The aim is a small set of strong pairs, each tied to a service you want to be hired for. Put them on the service page they illustrate and collect them in a gallery page too. Our guide to writing a service page shows where proof belongs.

Consent for client photos

A photo of someone's home can reveal their address, their belongings and their family. A photo of a patient can be health information. Treat client photos as personal information unless you are certain they are not.

The Office of the Privacy Commissioner's consent guidelines say organizations must generally obtain express consent when the information is sensitive, when the use is outside the person's reasonable expectations, or when it creates a meaningful risk of significant harm. They also say people must be given a clear yes or no choice, and be able to withdraw consent later (OPC, Guidelines for obtaining meaningful consent). A client who hired you to fix a roof did not necessarily expect their house to appear in your marketing.

A simple process:

  1. Ask in writing before you publish. A line in your quote or contract plus a separate tick or signature for marketing use, so it is a real choice.
  2. Say where the photos will appear: website, social media, printed material.
  3. Offer to leave out identifying details. Crop house numbers, number plates, family photos and street signs. For clinics, publish only where the patient has clearly agreed, and avoid faces unless that is explicit.
  4. Keep a record of who agreed, when and to what.
  5. Remove photos when asked. Say how to ask, and act promptly.

Regulated professions have their own rules about advertising results. Check with your college or licensing body before you publish clinical images. This is general information, not legal advice.

See what Website Design & Development would cost for your business

Answer a few questions about your project and budget and get a personalised plan, compared with typical market prices.

Book a free 15-min callAbout 3 minutes · no obligation · fixed price confirmed in writing

Shooting and layout

Take the "before" with the "after" in mind. Stand in the same place, use the same lens setting and orientation, and shoot in similar light. Note the spot, perhaps with a mark on the floor. Clutter in the after shot hurts you, so clear it.

For layout, show each pair side by side on desktop and stacked on a phone. Put "Before" and "After" labels as visible text, not baked into the image. A slider that reveals the after photo is fine if it works by touch and keyboard, but a plain pair is more accessible and loads faster. Limit the page to your best 6 to 12 pairs. Add a caption with the job type, the time it took and one detail: "Kitchen repaint, two days, cabinets sprayed in satin white."

Under the gallery, add a single call to action: ask for a quote, or book an on-site visit.

Compression and format

Phone photos are several megabytes. Do not upload them as they come. Resize each image to the largest size it will be displayed at, with a second, smaller version for phones, then compress it. web.dev's images course covers modern formats such as WebP and AVIF, and responsive images using srcset and sizes so each device downloads only what it needs (web.dev, Learn Images).

Practical settings:

  • Export to WebP or JPEG at a quality where you cannot see the difference at normal size.
  • Cap the longest edge to what your layout needs rather than the camera's full resolution.
  • Strip location data from photos before publishing. Phone photos can embed GPS coordinates in their metadata, which would reveal a client's address.
  • Name files descriptively, such as kitchen-repaint-before.webp.

Alt text that helps

The W3C's decision tree says an informative photograph needs a brief description that conveys its meaning in the alt attribute, and a decorative image gets an empty one (W3C WAI, alt decision tree). For a before and after pair, describe what a person who could not see it needs to know:

WeakBetter
"before""Before: peeling paint and water stains on a bathroom ceiling"
"best plumber kitchen reno GTA cheap""After: repainted ceiling, smooth and white, with new light fixture"

Keep it factual. If the caption already says everything, make the alt text brief and non-repeating. Do not stuff keywords. It is for people using screen readers first.

A gallery that loads fast

  • Lazy-load below the first screen. The loading="lazy" attribute defers offscreen images until the visitor scrolls near them. web.dev notes that you should not lazy-load images likely to be visible when the page first loads (web.dev, lazy loading).
  • Set width and height on every image so the browser reserves space and the page does not jump as photos arrive. web.dev recommends this for all images.
  • Avoid loading a heavy gallery script for what a simple grid does.
  • Paginate or "load more" rather than putting every project on one page.

Test on a phone with a weak signal. If the gallery is not usable there, trim it. Our web design work uses this same checklist, and the free website check-up flags oversized images.

Key takeaways

  • Get clear written consent before publishing client photos, and honour removal requests.
  • Match angle, light and framing in each pair, and caption what was done.
  • Resize, compress and strip location data from every photo.
  • Write factual alt text for each image, and set width and height.
  • Lazy-load images below the first screen, and keep the gallery to your best pairs.

Frequently asked questions

Do I need permission to post before and after photos of a client's home?

Yes, get it, in writing, before publishing. Home photos can reveal an address and personal belongings. Say where the photos will appear, offer to crop identifying details and note that the client can withdraw consent later. Keep a record of the agreement.

How many before and after photos should be on a page?

Fewer, better pairs beat a long gallery. Showing six to twelve of your strongest pairs on a gallery page, and one to three on each relevant service page, is a sensible start. Load more only if visitors want them.

What should alt text say for a before and after photo?

Describe what is visible and which state it shows: "Before: cracked driveway with weeds along the edge." Keep it short and factual, and avoid stuffing keywords. If the visible caption says the same, keep alt brief rather than repeating it.

How do I stop a photo gallery slowing my website?

Resize and compress each image, use modern formats, set width and height, and add loading="lazy" to images below the first screen. Limit how many load at once, and test on a mobile connection.

Sources

  1. Guidelines for obtaining meaningful consent — Office of the Privacy Commissioner of Canada
  2. An alt Decision Tree — W3C Web Accessibility Initiative
  3. Browser-level image lazy loading for the web — web.dev
  4. Learn Images — web.dev

How Flowmatix can help

We put this into practice for businesses in Toronto and around the world through our Website Design & Development, conversion rate optimization services. Want to know what it would take for your business? Get a personalised quote in about 3 minutes, or request a free website check-up.

Let's talk

Got a project in mind?

Book a free 15-minute strategy call. We talk through what you need, then you get a fixed price in writing before any work starts. No sales script.