Websites and web tools
Image compression: a beginner's guide
Photos of vehicles, workshops and finished detailing jobs are often the heaviest part of a small business website. This beginner's page explains why image files get large, what compression actually removes, and a simple routine anyone can follow before uploading a photo.
Why photos are big
A digital photo is a grid of pixels, and each pixel stores colour, typically three bytes for red, green and blue. Phone cameras capture many millions of pixels, far more than a web page can show.
Resizing is the first and biggest saving. Compression then shrinks what remains.
Lossy and lossless
- Lossless compression stores the same pixels in a smaller file. Decompressing it gives back an exact copy.
- Lossy compression throws away detail the eye is unlikely to miss, such as fine colour shifts in a smooth sky or paint panel.
- Lossy files are far smaller for photos. Lossless suits logos, screenshots and graphics with sharp edges and flat colours.
Formats in plain terms
| Format | Type | Good for |
|---|---|---|
| JPEG | Lossy | Photos, works everywhere |
| PNG | Lossless | Logos, screenshots, transparency |
| WebP | Lossy or lossless | Photos and graphics, smaller than JPEG at similar quality |
| AVIF | Lossy or lossless | Photos at very small sizes; encoding is slower |
| SVG | Vector, not pixels | Icons and simple logos that must stay sharp |
A five-step routine before upload
- Crop to what matters, such as the car, not the whole car park.
- Resize to the largest width the page actually displays, plus a 2x version for sharp screens if needed.
- Export as WebP or JPEG for photos, PNG or SVG for logos.
- Choose a quality setting, then zoom in and look for blockiness or smeared edges.
- Rename the file to describe it, such as
blue-hatchback-ceramic-coating.webp.
Beginner mistakes
- Uploading the phone original and letting CSS shrink it on screen; the visitor still downloads the full file.
- Saving a photo as PNG, which can make it several times larger than JPEG.
- Compressing the same JPEG again and again, which stacks up damage.
- Removing all quality: paint finish photos for a detailer need to look sharp, so check by eye.
- Forgetting
widthandheighton the image tag, which lets the layout jump as images load.
Keep the originals
Store full-size originals somewhere safe and compress copies for the web. If you redesign the site later or need a print flyer, you can export fresh versions instead of enlarging small, compressed ones.