Property & constructionSites that prove the work before the first call, from planning to handover.
Every industry buys differently, so every industry gets its own page.All industries →

How to Compress Photos for the Web Without Ruining Them

To optimize images for a photography website, export each photo at the size your site displays it, use a quality setting of about 70 to 85% for JPEG or a similar WebP setting, and compare the result at full size. Done this way, a photo can look the same to the eye and load much faster.

By Mikkel Calmann, Founder, TypzaUpdated 9 min read

In this article
  1. Why raw exports are the wrong file for the web
  2. Resolution: matching the file to its actual display size
  3. Format and compression settings that actually matter
  4. A practical export workflow for galleries
  5. Tools and automation worth using
  6. Conclusion
  7. FAQ
  8. More insights for photographers

Photographers are trained to protect image quality, so compression can feel like a compromise. The real problems come from doing it carelessly: compress too hard and you can see it, skip it and your site slows down. A simple export preset avoids both.

1. Why raw exports are the wrong file for the web

A photographer exporting from Lightroom or Capture One at maximum quality, full resolution, minimal compression, is producing a file optimized for print or archival purposes, not for a browser rendering it at 1200 pixels wide on a phone screen. That mismatch is the root cause of nearly every slow photography gallery: the browser is downloading far more data than it will ever actually display, purely because the export settings were never adjusted for the web use case specifically.

This matters more for photographers than almost any other type of website, because the volume of images is so much higher than a typical business site. A twenty-image gallery of unoptimized full-resolution exports can easily total 100-200MB, an amount that would take even a reasonably fast mobile connection many seconds, sometimes tens of seconds, to fully load. The same gallery, properly optimized, often comes in under 10MB with no visible quality difference on screen.

2. Resolution: matching the file to its actual display size

The single biggest lever in image optimization is resolution, not compression quality. An image displayed at a maximum of 2000 pixels wide on a large desktop hero doesn't need to be exported at 6000 pixels, the camera's native resolution, since the browser will simply be downloading and then downscaling four times more data than it will ever display. Export images at the actual maximum size they'll appear on your website, not the maximum size your camera can produce.

This requires knowing your website's actual display dimensions, which vary by placement: a full-width hero might need up to 2400px on the long edge, while a grid gallery thumbnail might only need 800-1000px. Most website platforms will generate multiple sizes automatically for responsive display if the images are uploaded at a reasonable master size, but uploading unnecessarily massive originals (8000px+ camera-native files) still forces the platform to process and often serve more data than needed, even with responsive handling in place.

3. Format and compression settings that actually matter

For most photography use cases, a well-compressed JPEG at 70-85% quality remains a reliable choice, striking a strong balance between file size and visible quality, since JPEG compression at this range is rarely distinguishable from an uncompressed original at normal viewing distances and screen sizes. Going below 60% quality starts to introduce visible artifacts, particularly in areas of smooth gradient like skies or skin tones, common subjects in photography portfolios, so it's worth testing your specific export settings against your actual typical images rather than applying a blanket setting blindly.

WebP, a newer image format, offers meaningfully better compression than JPEG at equivalent visual quality and is now widely supported by browsers and increasingly handled automatically by website platforms during upload. If your platform supports automatic WebP conversion, you often don't need to manage this manually, but it's worth confirming that your platform is actually serving WebP to supporting browsers rather than defaulting to larger JPEGs across the board.

4. A practical export workflow for galleries

Build compression into your existing editing workflow rather than treating it as a separate final step. After finishing your edit in Lightroom or Capture One, use an export preset specifically configured for web: resize to your website's actual maximum display dimension (commonly 2000-2400px on the long edge), export as JPEG at 75-80% quality, and strip unnecessary metadata that adds file weight without any visual benefit. Save this as a dedicated "web export" preset so it becomes a one-click step rather than a manual decision made inconsistently gallery to gallery.

For photographers delivering large galleries regularly, batch exporting with a consistent preset is far more reliable than optimizing images one at a time, both for consistency and for the sheer time savings. If you're currently uploading straight from a "client delivery" export (often full resolution for print ordering) directly to your website, that's very likely the single biggest fix available: create a separate, smaller web-specific export and use that instead.

5. Tools and automation worth using

Beyond your editing software's export settings, dedicated compression tools can catch additional savings, particularly for images already exported without optimal web settings. Tools like Squoosh (a free, browser-based compressor) let you visually compare compression levels against file size in real time, which is useful for calibrating your own eye to what compression level is actually acceptable for your specific photography style before you commit to a preset.

Many website platforms, including Squarespace, also apply some automatic optimization and responsive image serving on upload, but this shouldn't be relied on as a substitute for reasonable export settings on your end. Platform-level optimization works best as a safety net on top of already-reasonable source files, not as a fix for wildly oversized, unoptimized originals. Getting your export workflow right upstream remains the highest-leverage single change most photographers can make to their site's actual performance.

Conclusion

Fast pages and great-looking photos can go together once your export settings match how the image is shown. Today, build one export preset at about 2400px on the long edge and 80% quality, then run your heaviest gallery through it. Compare the new files side by side with the originals, then test the page in PageSpeed Insights.

FAQ

What's the ideal JPEG quality setting for web export?

70 to 85 percent is a good range to start with. At that range, JPEG compression is rarely distinguishable from an uncompressed original at normal viewing sizes. Our own web export preset uses 75 to 80 percent. Going below 60 percent starts to show artifacts, especially in smooth gradients like skies and skin tones, so test your settings on your typical images.

Should I export images at my camera's full resolution for the website?

No. Export at the largest size your website actually displays, not the largest your camera produces. A full-width hero might need up to 2400px on the long edge, while a grid thumbnail might need only 800 to 1000px. A hero shown at 2000px but exported at 6000px makes the browser download several times more data than it will ever display.

Is WebP better than JPEG for photography websites?

Generally yes. WebP offers meaningfully better compression than JPEG at the same visual quality, and it's now widely supported by browsers. Many platforms convert to WebP automatically on upload, so you often don't need to manage it by hand. It's worth confirming your platform is actually serving WebP to supporting browsers rather than defaulting to larger JPEGs.

Will compression make my images look noticeably different?

Not usually within the suggested range of 70 to 85 percent for JPEG, or a similar WebP setting. Differences tend to show at more aggressive levels, below about 60 percent, where artifacts appear in smooth gradients. Skin tones and skies are common in photography portfolios, so compare the result at full size against the original before you apply a setting across a gallery.

Can my website platform handle image optimization automatically?

Many platforms, including Squarespace, apply some automatic optimization and serve responsive sizes on upload. That works best on top of sensible source files, not instead of them. Uploading 8000px camera-native files still forces the platform to process and often serve more data than needed. A saved web export preset in Lightroom or Capture One makes it a one-click step.

More insights for photographers

All photographers insights

How does your website score?

Enter your address and email. You get scores for speed, search, accessibility and trust in about a minute, and the full report by email.