Project photo optimization starts with the size people actually see
Project photo optimization is the work of matching each job photo to the screen where it will appear. A kitchen remodel photo straight from a phone camera is often far larger than any page needs, so the extra weight only slows the page. The sections below cover display width, high density screens, cropping, formats, compression settings and a check on a real phone.
Why job photos get heavy so fast
Contractors and portfolio owners take dozens of photos on every job. Each one comes straight from a camera that records far more pixels than a web page can show. The WordPress 5.3 note on big images says an average modern smartphone photo is easily over 5MB and good camera photos can be much larger.
Images also carry much of a page’s weight. The web.dev lesson on key image performance issues calls images the web’s biggest assets by both transfer size and number of requests. It adds that optimizing image requests may be the single biggest performance optimization you can make.
That makes photo weight a sensible first fix. A gallery of finished jobs can be one of the heaviest pages on a contractor site. For a wider look at other delays, see the post on what actually makes a small business website slow.
Project photo optimization starts with display width
Start by finding the width at which each photo actually appears. A theme might place the main image in a column 800 CSS pixels wide, a gallery tile at 300 and a banner at 1200. Those numbers come from your theme and layout, so check them on your own pages.
Uploading a 4000 pixel wide photo to fill an 800 pixel column makes the browser download far more data than it can show. As an invented example, a 4000 by 3000 pixel photo holds 12 million pixels. Resized to 1600 by 1200 it holds about 1.9 million, which is roughly one sixth of the pixel data.
The web.dev article on serving responsive images says desktop sized images sent to mobile devices can use two to four times more data than needed. It also notes that serving three to five sizes of an image is common.
How high density screens change the upload size
Many phones and laptops pack more device pixels into each CSS pixel. The web.dev guide on how to choose the right image format explains that a 2x screen needs four times the pixels of a 1x screen. Both the width and the height double.
An image shown 800 CSS pixels wide can use a 1600 pixel file on a 2x display and stay sharp. Uploading far beyond that adds weight the layout does not need. The MDN guide to responsive images describes a density method that lets the browser pick a 1x, 1.5x or 2x file for the same display size.
What WordPress does with a large upload
WordPress already handles part of this. Since version 5.3 an upload wider or taller than 2560 pixels is scaled down, and the scaled copy becomes the largest size the site uses. The original file stays in the uploads folder.
That limit is a safety net, not a target. A 2500 by 1667 pixel photo is not scaled, yet it is far larger than an 800 pixel column needs.
WordPress also creates several sizes of each upload. Since version 4.4 it adds srcset and sizes attributes so browsers can choose a fitting size, as the WordPress 4.4 note on responsive images describes. Those smaller copies are made from the file you upload, so a clean upload gives cleaner copies.
Project photo optimization and cropping
Cropping removes pixels that carry no information. A deck photo with a third of the frame showing empty sky and a neighbor’s fence wastes that space.
Crop first, then resize, so the subject fills the frame at the size you export. Pick one aspect ratio for each slot, such as 16 by 9 for a banner or 4 by 3 for gallery tiles. Matching ratios keep a gallery tidy.
Set width and height on images when you can. The web.dev guide to optimizing Cumulative Layout Shift says to always include width and height attributes or to reserve space with the CSS aspect ratio property.
That lets the browser hold the space while the photo loads. Check a gallery on your site if its photos make the page jump.
Choosing between JPEG, WebP and AVIF
JPEG is the long standing choice for photographs and every browser reads it. The web.dev lesson on the JPEG format describes lossy compression and a single quality setting from 0 to 100.
WebP can produce files smaller than a comparable JPEG, according to the web.dev lesson on the WebP format. WordPress has accepted WebP uploads since version 5.8 as long as the host supports it, as the WordPress 5.8 note on WebP explains.
AVIF is newer. The web.dev lesson on the AVIF format says browser support arrived in Chrome and Opera in 2020, Firefox in 2021 and Safari in 2022.
The WordPress 6.5 note on AVIF says uploads work when the hosting environment supports it. To check, open Tools, then Site Health, then Info and look under Media Handling for AVIF.
Google Images supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF. The Search Central image guidance notes that images are often the largest contributor to page size, which can make pages slow and expensive to load.
A quick format comparison for project photo optimization
The table below compares the three formats for project photos. Check each point against your own host before you switch.
| Format | What to know | In WordPress | Check first |
|---|---|---|---|
| JPEG | Long standing photo format that every browser reads | Accepted without extra steps | Banding on smooth walls and ceilings |
| WebP | Can be smaller than a comparable JPEG | Uploads since 5.8 when the host supports it | Host support and older browsers |
| AVIF | Often smaller than JPEG | Uploads since 6.5 when the host supports it | AVIF in Site Health, then a phone test |
Compression quality settings that hold up
Compression quality is a trade between file weight and visible damage. The JPEG lesson says the quality number runs from 0 to 100 and that tools do not all treat the same value alike. Perceived quality also varies with the content of the image.
So test with your own photos. Export one kitchen photo at three or four quality values, then compare each one at the size it will display.
Keep the lowest value where nothing looks wrong. Start from the original file each time, because a copy already saved as a JPEG has lost data that no later export can restore.
Smooth areas show damage first. The WebP lesson shows a blurred background turning into blocky bands when JPEG compression is pushed too far, while detailed areas still look fine. In a project photo, check painted walls, ceilings, countertops and sky.
Developers can change the default compression quality WordPress uses with the wp_editor_set_quality filter. Ask your developer before you change it, since the change affects the images WordPress creates afterward.
Project photo optimization checks on a real phone
A laptop preview does not show how a gallery feels in a hand. The Chrome documentation on device mode calls it a first order approximation and says that when in doubt you should run the page on a real mobile device.
Open the live page on a phone, once on wireless internet and once on mobile data. Then work through this list.
- Load the page and watch the first photo, noting if it appears late or sharpens after a pause.
- Zoom to full size on dark finishes, ceilings and smooth walls to look for bands or blocks.
- Read any text inside the photo, such as a truck door, a sign or a plan.
- Turn the phone sideways and check how the banner crop looks.
- Scroll the gallery and confirm that photos below the first screen load as you reach them.
- Compare one photo with its original on the same phone.
Do not lazy load the main photo at the upper part of the page. The web.dev article on browser level lazy loading cautions against it for images likely to be in view when the page loads, especially the Largest Contentful Paint image.
Photos further down can load as visitors scroll. For more phone layout checks, see the mobile website checklist.
Project photo optimization for galleries and before and after pairs
The example here is invented and hypothetical. A deck builder has a gallery of twelve phone photos at 4000 pixels wide, and the tiles display at 400 CSS pixels. A 2x display needs about 800 pixels for those tiles, so most of each file is wasted.
After a resize to 1600 pixels wide and a quality test on a phone, the gallery loads far fewer pixels. The photos can still look sharp at tile size and in a larger view. The post on separating remodeling services from project galleries covers how to organize those galleries.
Before and after pairs need the same crop, the same width and the same compression. Mismatched exports make one side look sharper and mislead the comparison.
Keep full size originals in a separate folder so a later redesign starts from the original. The post on publishing a blog post in WordPress without breaking the layout helps when you add the finished images to a page.
A short routine to repeat for every job
Use this order each time photos come in from a job.
- Keep the original photo untouched.
- Find the display width for the slot, then double it for 2x screens.
- Crop to the subject and choose one aspect ratio for each slot.
- Resize to that width and no wider.
- Export as JPEG, or as WebP or AVIF when the host supports them.
- Test three quality values and keep the lowest one that looks clean.
- Set width and height or reserve the space with the aspect ratio.
- Check the live page on a real phone, then adjust.
Sources were reviewed on December 2, 2026.
The information here is general and educational and is not technical advice for a specific business. Examples are hypothetical. Check your own pages, host and developer before you change image sizes, formats or settings.



