# Web image optimisation: verifiable protocol, formats, LCP and perceptual quality

<!-- reader-navigation:start -->
**Sections of the full article**

- [A web image is optimised when the browser receives the smallest sufficient file without losing meaning, sharpness or stability.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-short-answer)
- [This page failed its own recommendation. We recorded the defect before correcting it.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-edikka-evidence)
- [Eight viewport × DPR combinations confirm responsive selection with no horizontal overflow.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-production-replay)
- [HTML, a network trace, field data and human review answer different questions.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-evidence-levels)
- [The grid covers 12 domains and 36 controls without producing a misleading aggregate score.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-protocol)
- [Required file width follows the CSS box and DPR, not the phone model.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-responsive)
- [AVIF, WebP, JPEG, PNG and SVG solve different content and production constraints.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-formats)
- [A byte cap without a perceptual reference mechanically rewards over-compression.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-quality)
- [The LCP image should be discovered early, prioritised clearly and preloaded only when evidence justifies it.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-lcp)
- [Lazy loading, decoding and explicit dimensions solve three different problems.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-loading-stability)
- [Alt text is a contextual decision, not a filename generator or keyword field.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-accessibility)
- [Discoverability starts with img and src; structured data cannot rescue an image hidden from extraction.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-seo)
- [The optimisation pipeline should be reproducible, versioned and able to fail a release.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-http-pipeline)
- [Compatibility, cache and fidelity require dated decisions, not a permanent ranking of formats.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-state-of-art-2026)
- [A method becomes reusable when a third party can collect the same facts, validate their structure and cite a stable edition.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-instrument-citation)
- [Move from editorial role to production evidence in eight explicit decisions.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-workflow)
- [Six popular rules fail because they collapse separate decisions into one number.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-myths)
- [Download the grid, inspect the evidence and reuse the method.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-resources)
- [Sources rechecked on 23 August 2026.](https://www.edikka.com/en/insights/web-development/web-image-optimisation#image-sources)
<!-- reader-navigation:end -->

- **Publisher:** Edikka — Bertrand Morel
- **Canonical URL:** https://www.edikka.com/en/insights/web-development/web-image-optimisation
- **Method version:** 1.1
- **Article review:** 2026-08-23
- **Grid review:** 2026-08-23
- **Licence:** CC BY 4.0 with attribution to Edikka and a link to the canonical article
- **Scope:** 12 domains, 36 controls, four closed statuses

## Short answer

A web image is optimised when the browser receives the smallest sufficient file for its CSS box and display density without losing meaning, crop, sharpness, accessibility or stability. Weight, LCP, CLS, perceptual quality and image SEO remain separate dimensions.

## Production replay across eight contexts

On 23 August 2026, eight viewport × DPR scenarios were replayed on the public French page with Playwright. Every page response was HTTP 200, horizontal overflow stayed at zero and the browser selected the 600×400 or 900×600 AVIF candidates. Mobile Lighthouse measured 99/100 performance, 100/100 accessibility and 1.9 s LCP; desktop measured 100/100 performance and 0.4 s LCP. These laboratory observations do not replace 75th-percentile field data.

Raw replay: https://www.edikka.com/docbd/data/rejeu-production-images-web-edikka-2026-08-23.json

## Decision rule

A non-compliant blocking control prevents release. Not tested never means compliant. Perceptual checks require human approval even when a metric is available.

## State of the art on 23 August 2026

| Topic | Verifiable state | Production decision |
|---|---|---|
| `sizes="auto"` | Allowed by HTML for lazy-loaded images with fallback source sizes. | It does not replace explicit sizes for an eagerly loaded LCP image. |
| JPEG XL | Blink decoder documented in Chrome 145 in an experimental setting. | Bounded experiment only, with a fallback that is actually served. |
| Client Hints | WICG mechanism involving HTTPS, opt-in, cache and privacy. | Progressive optimisation; no essential image depends on hints. |
| `Vary: Accept` | Part of the cache key when one URL negotiates representations. | Verify origin and edge or use explicit variant URLs. |
| Encoder | A quality number is not comparable across codecs and versions. | Version every parameter and compare produced files. |
| Colour | Rendering depends on profile, space, browser and display. | Document sRGB/P3 and preserve required profiles. |
| RGESN | Criteria 5.1, 5.2 and 6.4 cover formats, compression and display sizes. | Map criteria to IMGxx without claiming global compliance. |

## Open instrument and citation

The public collector records browser facts without manufacturing a score. Its report follows a public JSON Schema and remains **Not tested** until an auditor maps observations to IMGxx controls and signs the decision.

```bash
npm install playwright
npx playwright install chromium
node collect-image-evidence-edikka-v1-1.mjs https://example.com/page web-image-report.json
```

Version 1.1 corrects IMG07: HTML defines naturalWidth as a density-corrected dimension, so it must not stand in for the encoded width of the selected file. The collector now decodes currentSrc independently, measures file pixels, calculates file_width / (CSS_width × DPR), and leaves the pass threshold in the versioned role policy.

Recommended citation: Morel, Bertrand (2026). “Web image optimisation: verifiable protocol, 36-control grid and evidence collector.” Edikka, version 1.1, 23 August 2026, CC BY 4.0. No DOI is assigned to this edition.

## The 36 IMGxx controls

| ID | Domain | Question | Replayable method | Expected evidence | Access | Severity | Automation |
|---|---|---|---|---|---|---|---|
| IMG01 | Inventory and role | Is every visible image inventoried with its final URL, template and role? | Extract img, picture, SVG and CSS images from priority templates; deduplicate by final URL. | Dated inventory with page URL, currentSrc, role and owner. | Browser | Major | Partial |
| IMG02 | Inventory and role | Is each image classified as LCP, content, decoration, interface, social or data? | Compare position, context and function; never infer the role from the filename alone. | Reviewed role and short rationale for each priority image. | Human review | Major | No |
| IMG03 | Inventory and role | Do critical images have an owner and a review date? | Assign each family to an editorial, design or technical owner. | Owner, last review and next review date. | Pipeline | Minor | Partial |
| IMG04 | Master, crop and art direction | Is a sufficiently detailed master kept outside production without generation-loss re-encoding? | Compare master dimensions and hash with derivatives; identify successive generations. | Identified, hashed and versioned master. | Pipeline | Major | Partial |
| IMG05 | Master, crop and art direction | Do the focal point and crop remain legible in every template? | Replay desktop, tablet and mobile; inspect the subject, embedded text and negative space. | Screenshots at reference widths and human approval. | Human review | Major | No |
| IMG06 | Master, crop and art direction | Is an art-direction variant supplied when scaling alone destroys the composition? | Compare the reduced common crop with a dedicated picture/media variant. | Documented choice: shared crop or dedicated variant. | Human review | Minor | No |
| IMG07 | Responsive dimensions | Do srcset candidates cover rendered widths and high-density screens without major oversizing? | With a cold cache, record the rendered CSS width and DPR, identify currentSrc, then measure the selected file pixel width directly without treating naturalWidth as the encoded width. Calculate coverage = file width / (CSS width × DPR) and compare it with the versioned threshold for the image role. | currentSrc, CSS width, DPR, selected-file pixel dimensions, measurement method, coverage ratio and applicable threshold. | Browser | Major | Partial |
| IMG08 | Responsive dimensions | Does sizes describe the actual layout? | Compare sizes with computed container widths at documented breakpoints. | sizes values, rendered box and selected resource. | Browser | Major | Partial |
| IMG09 | Responsive dimensions | Does the browser choose the smallest sufficient candidate in the tested scenarios? | Replay viewport, DPR and cold cache; record currentSrc and transferred bytes. | Viewport × DPR × currentSrc × bytes matrix. | Browser | Major | Yes |
| IMG10 | Formats and fallbacks | Does the format fit the content: photo, transparency, screenshot, illustration, vector or animation? | Classify the visual, then compare the delivered format with fidelity constraints. | Visual type, primary format and rationale. | Human review | Minor | Partial |
| IMG11 | Formats and fallbacks | Does each modern source have a coherent fallback when the support policy requires one? | Inspect picture/source/img and test source-selection order. | picture tree and versioned compatibility policy. | Public | Major | Yes |
| IMG12 | Formats and fallbacks | Are MIME type, extension and served bytes consistent? | Compare Content-Type, URL and file signature. | HTTP header and binary identification. | Public | Major | Yes |
| IMG13 | Compression and perceptual quality | Is weight measured per candidate instead of inferred from a filename or estimate? | Record encodedBodySize and transferSize with a cold cache. | Encoded and transferred bytes per resource. | Browser | Major | Yes |
| IMG14 | Compression and perceptual quality | Is perceptual quality checked against an explicit master? | Compare at identical dimensions with SSIMULACRA2 or a documented metric, then review sensitive areas. | Master, encoder, version, settings, score and 1:1 captures. | Pipeline | Major | Partial |
| IMG15 | Compression and perceptual quality | Does policy prohibit repeated re-encoding from a derivative? | Trace file provenance and require generation from the master. | Provenance graph or pipeline rule. | Pipeline | Major | Partial |
| IMG16 | LCP discovery and priority | Is the LCP image discoverable in the initial HTML without a late script? | Inspect the pre-execution HTML response and the request initiator. | Initial HTML and request initiator. | Public | Blocking | Yes |
| IMG17 | LCP discovery and priority | Does the LCP image avoid loading=lazy and receive an appropriate priority? | Inspect loading, fetchpriority, preload and network order. | Attributes and dated waterfall. | Browser | Blocking | Yes |
| IMG18 | LCP discovery and priority | When present, does the responsive preload match the rendered srcset and sizes? | Compare preload imagesrcset/imagesizes with the image candidates. | Coherent preload and image element, without duplicate download. | Browser | Major | Yes |
| IMG19 | Loading and decoding | Do offscreen images use lazy loading without creating a visual gap? | Check loading, viewport distance and request timing during scroll. | Attribute, position and network timeline. | Browser | Minor | Partial |
| IMG20 | Loading and decoding | Is decoding mode appropriate to criticality and tested on the rendered page? | Record decoding and inspect rendering; do not treat async or sync as universal. | Attribute and rendering observation. | Browser | Information | Partial |
| IMG21 | Loading and decoding | Do carousels, galleries and injected images reserve space before loading? | Replay cold cache and interactions; observe layout shifts. | CLS trace and component capture. | Browser | Major | Partial |
| IMG22 | Dimensions and stability | Do width and height describe the intrinsic ratio of the candidate or reference fallback? | Compare attributes, decoded dimensions and rendered ratio. | HTML dimensions, natural dimensions and calculated ratio. | Public | Major | Yes |
| IMG23 | Dimensions and stability | Is space reserved before download at every breakpoint? | Disable cache, throttle the network and inspect the box before decoding. | Pre-load capture and laboratory CLS. | Browser | Major | Partial |
| IMG24 | Dimensions and stability | Does CSS cropping preserve an explicit ratio and focal point? | Inspect aspect-ratio, object-fit, object-position and container dimensions. | Computed styles and breakpoint captures. | Browser | Minor | Partial |
| IMG25 | Accessibility and meaning | Does every informative image have text that conveys its function in context? | Apply the W3C decision tree; compare alt, adjacent text and function. | Informative, functional, complex or decorative decision. | Human review | Blocking | No |
| IMG26 | Accessibility and meaning | Are decorative images ignored by assistive technologies? | Check an empty alt or equivalent technique without duplicating context. | Accessible DOM and screen-reader output. | Browser | Major | Partial |
| IMG27 | Accessibility and meaning | Do complex charts, diagrams and screenshots have an equivalent description or data? | Check figcaption, long description, data table or adjacent text. | Complete alternative reachable from the same context. | Human review | Major | No |
| IMG28 | Image SEO and discoverability | Are important images exposed through an img src, optionally inside picture? | Compare visible images, HTML and CSS resources. | Discoverable URL in HTML and editorial context. | Public | Major | Yes |
| IMG29 | Image SEO and discoverability | Do filename, alt, caption and adjacent text describe one subject without keyword stuffing? | Cross-review the file, alternative and surrounding paragraph. | Documented consistency without artificial repetition. | Human review | Minor | No |
| IMG30 | Image SEO and discoverability | Do CDN, image sitemap and structured data use accessible, consistent URLs? | Check status, image canonical, Search Console ownership for separate domains, sitemap and primaryImageOfPage. | Final URL, status, verified property and coherent ImageObject. | Search Console | Major | Partial |
| IMG31 | HTTP, cache and privacy | Do public images use a cache policy compatible with their versioning? | Inspect Cache-Control, ETag, Age and immutable naming. | HTTP headers and invalidation rule. | Public | Major | Yes |
| IMG32 | HTTP, cache and privacy | Are sensitive or unnecessary metadata removed from derivatives? | Inspect EXIF, XMP, profiles and coordinates; retain only what is required. | Before/after metadata report. | Pipeline | Major | Yes |
| IMG33 | HTTP, cache and privacy | Do third-party images respect consent, CSP, CORS and the expected referrer policy? | Replay before and after consent; inspect origin, cookies, CSP and referrer. | Waterfall, headers and legal/technical decision. | Browser | Blocking | Partial |
| IMG34 | Measurement, CI and governance | Are dimension, weight and quality budgets versioned per image type? | Define template-specific caps and perceptual-quality floors as guardrails, not universal truth. | Versioned configuration file and justified exception. | Pipeline | Major | Yes |
| IMG35 | Measurement, CI and governance | Does CI fail on blocking regressions and publish the evidence? | Replay dimensions, formats, metadata, weight, candidates and links; archive the report. | Command, exit code, dated report and owner. | Pipeline | Major | Yes |
| IMG36 | Measurement, CI and governance | Are field, laboratory and perceptual data kept separate in the decision? | Report field LCP/CLS, lab diagnosis and visual review in three distinct columns. | Decision table without a misleading aggregate score. | Logs | Major | Partial |

## Open resources

- English JSON grid: https://www.edikka.com/docbd/data/web-image-audit-grid-edikka-v1-1.json
- Language-neutral workbook: https://www.edikka.com/docbd/data/grille-audit-images-web-edikka-v1-1.xlsx
- Before/after self-audit: https://www.edikka.com/docbd/data/auto-audit-images-web-edikka-2026-08-22.json
- Production replay: https://www.edikka.com/docbd/data/rejeu-production-images-web-edikka-2026-08-23.json
- Node.js / Playwright collector: https://www.edikka.com/docbd/data/collect-image-evidence-edikka-v1-1.mjs
- Evidence report schema: https://www.edikka.com/docbd/data/web-image-evidence-report-v1-1.schema.json
- Citation CFF: https://www.edikka.com/docbd/data/CITATION-images-web-edikka-v1-1.cff
- HTML article: https://www.edikka.com/en/insights/web-development/web-image-optimisation

## Voluntary limitation

Edikka designs and optimises websites: this method is not an independent standard. It publishes controls, sources, evidence and limits so that a third party can reproduce or challenge the decision. It guarantees neither rankings, traffic nor conversions.
