Preparing images
Prepare every image before you upload it. An image goes live exactly as you upload it.
Why optimised images matter
Section titled “Why optimised images matter”- Page weight. Images make up most of a page’s download. Measured on the live site at desktop width, the home page loads 1.31 MB across 9 images, the gallery detail pages load 1.25 to 1.48 MB, and most other pages load about 0.11 MB.
- Phone data costs. Phones download the same files as desktops. Every extra megabyte is data a visitor pays for on a mobile connection.
- Speed. Heavy images make pages slow to appear, especially on slow connections.
The rule: no resizing after upload
Section titled “The rule: no resizing after upload”Images in the site’s public folder and every image you upload through CloudCannon are served exactly as uploaded. Nothing shrinks them, and nothing changes their format. An image that is too large stays too large on the live site.
Upload sizes by slot
Section titled “Upload sizes by slot”Each row is one place an image appears on the site. The upload size is the size to prepare. The file target is the largest file size to aim for.
These are WiPHLA-site recommendations written by us. They are not limits set by the client.
The Donate phone photo is shown in a wide strip cut from the top of the picture. A 5:4 photo shows about its top 70%. Keep the face and the main subject in the upper part. If the phone photo field is empty, phones show the desktop photo in the same strip.
| Slot | Observed on screen (1440 / 390 wide) | Ratio | Upload this size | File target |
|---|---|---|---|---|
| Page hero (about, programmes, stories) | 576 x 324 / 342 x 192 | 16:9 | 1200 x 675 | WebP or JPEG, under 200 KB |
| Home hero slides | 284 x 541 / 342 x 240 (tablet 720 x 270) | crops 3:2 source to portrait and wide | 1600 x 1067 (3:2), subject centred | under 250 KB each |
| Donate hero, desktop (wider than 900 px) | 284 x 379 at 1440 wide | 3:4 | 600 x 800 | under 100 KB |
| Donate hero, phone and tablet (900 px and under), optional | 342 x 192 on a phone, 391 x 220 from 768 to 900 px | 16:9 strip cut from the top of the photo | 1200 x 960 (5:4), subject in the upper part | under 100 KB |
| Programme, blog and story cards | 366 x 206 / 340 x 191 | 16:9 | 800 x 450 | under 100 KB |
| Campaign banner (Giving Tuesday) | 766 x 431 / 282 x 159 | 16:9 | 1600 x 900 (shipped size) | under 100 KB |
| Team headshots | 340 x 340 on /team/, 300 x 340 on profile | square crop of 606 x 690 | 700 x 700 (face centred) | under 80 KB, JPEG or WebP |
| Gallery thumbnail | 223 x 167 / 150 x 113 | 4:3 crop | 600 px on the long side | under 60 KB |
| Gallery full image | 373 x 498 open view | free | 1600 px long side | under 300 KB |
| Partner logos | 51 to 158 x 22 to 62 | free | SVG, or PNG 320 px wide | under 30 KB |
| Header logo | 178 x 86 | 2.07:1 | SVG, or PNG 360 x 174 (site asset, developer only) | under 15 KB |
| PDFs (reports, resources) | n/a | n/a | n/a | state the size in fileSize |
Crops: every slot is cropped to fit
Section titled “Crops: every slot is cropped to fit”Every image slot crops the image to fit its frame. The home hero is one image, but it shows as a portrait frame on desktop (284 x 541), a wide frame on tablet (720 x 270) and a shorter portrait on phone (342 x 240). Keep the subject in the centre of the image so it survives every crop.
Formats
Section titled “Formats”- Photographs: WebP.
- Logos: SVG.
- PNG: only for graphics that need it.
File naming
Section titled “File naming”Use lowercase words separated by hyphens, for example katja-schiller-nwator.webp. File paths are case-sensitive: /uploads/Headshots/ is not the same as /uploads/headshots/.
Alt text for every image
Section titled “Alt text for every image”Write alt text for every image: a short description of what the picture shows for screen-reader users. Where a field in CloudCannon asks for alt text, fill it in. The blog schema refuses a featured image without alt text.
Gallery photos are not edited in CloudCannon. The site writes their alt text from the album’s name and the photo’s number.
Where uploads go
Section titled “Where uploads go”Upload images to public/uploads/. Team headshots go in public/uploads/headshots/, named after the member’s slug.
Size limit for uploads
Section titled “Size limit for uploads”Keep every image in public/uploads/ to 300 KB or less. This is our own limit, not the client’s. CloudCannon does not stop you uploading a larger file, but the developer’s checks fail on any image over 300 KB in that folder.
Source: the WiPHLA website audit (28 Nov 2026), section 2 “Images: what the site does today” (weights, the serving rule, the home hero crops) and section 3 “Recommended upload sizes” (slot table, formats, naming, alt text); docs/cloudcannon-editor-guide.md, section 6 “Images and Media” (uploads folder, lowercase naming) and section 8 “Troubleshooting” (case-sensitive paths); cloudcannon.config.yml, paths.uploads and the blog imageAlt field comment; the WiPHLA site code and CloudCannon configuration (2 Dec 2026).