Performance · 8 min read
Image Size for Web: The Photographer's Guide to Sharp, Fast Galleries
Image size is a design decision and a performance decision at the same time. Export too large and mobile visitors wait; export too small and the work looks soft on a large display. The right answer depends on where the image appears, how it is displayed, and how much detail the subject needs.
Updated October 27, 2026
01
Match dimensions to display size
A full-width hero image on a desktop layout rarely needs more than 2000 to 2500 pixels on the long edge. A grid thumbnail may need only 800 to 1200 pixels. Serving a 6000-pixel original into a 600-pixel slot is the most common cause of slow photography sites.
Account for high-density screens by exporting enough pixels for a 2x display at the largest layout size, but not more. A 1200-pixel slot needs roughly 2400 pixels for a sharp retina image, which is still far below camera resolution.
- Practical recommendations
- Export for the largest rendered size, not the original resolution.
- Use smaller files for grids and thumbnails.
- Allow for 2x displays without exporting full camera files.
02
Choose formats and compression
JPEG remains reliable for photographs and compresses well. WebP or AVIF can reduce file size further when your platform supports them. Keep a fallback and test the actual output, because aggressive compression can smear skin tones and fine details.
Avoid uploading PNGs of photographs; they are usually much larger. Use PNG only for graphics, logos, or images with transparency. Check the exported file size in kilobytes, not just the dimensions.
- Practical recommendations
- Use JPEG for photos and modern formats where supported.
- Avoid PNG for photographic content.
- Inspect file sizes and visual quality after compression.
03
Protect layout and loading behavior
Set width and height attributes or aspect-ratio boxes so the page reserves space before images load. This prevents layout shift and makes the gallery feel stable on a slow connection. Lazy load images below the first screen and load the hero eagerly.
Compress, resize, and serve images through a CDN when possible. A fast gallery is not only about file size; it is about the number of requests, caching, and the order in which the browser discovers them.
- Practical recommendations
- Reserve image dimensions to prevent layout shift.
- Eager load the hero and lazy load below-the-fold images.
- Use caching or a CDN for repeated gallery visits.
Questions couples ask
Frequently asked questions
What is the best image size for a photography website?
There is no single size. Match the export to the largest place the image appears, usually 2000 to 2500 pixels for heroes and 800 to 1600 pixels for grids.
Should I use WebP for all gallery images?
Use WebP when your platform supports it and you have tested the result. Keep a JPEG fallback and compare visual quality before converting everything.
A useful next step
Want a written second opinion on your current site?
Use the $50 Website Rebuild to improve the design, performance, conversion path, and SEO foundation of your current site.
Start the Website Rebuild