# Hero and above-fold images use an optimized format and pipeline

- **Pattern:** `ab-001787` (`marketing-page-speed.resource-optimization.hero-image-format`)
- **Severity:** high
- **Lifecycle:** active
- **Last modified:** 2026-04-18
- **Canonical URL:** https://auditbuffet.com/patterns/ab-001787
- **License:** CC-BY-4.0 — attribute to AuditBuffet Pattern Catalog (https://auditbuffet.com/patterns/ab-001787)

## Why it matters

Hero images are the single most common LCP element and the single largest contributor to page weight on marketing pages — a 1.2MB JPEG hero consumes more bandwidth than the entire rest of a well-optimised page combined. ISO-25010 resource-utilisation measures how efficiently a system uses network bandwidth; serving a full-resolution uncompressed JPEG to every visitor regardless of device is a direct violation. WebP at quality 80 is typically 60–70% smaller than an equivalent JPEG; AVIF can reach 80% smaller. On a 4G connection, the difference between a 200KB WebP and a 1.2MB JPEG is approximately 800ms of LCP penalty — enough to move a page from 'good' to 'needs improvement' on Google's scale.

## Severity rationale

High because an unoptimised hero image is the most common single cause of LCP failure, directly harming both Core Web Vitals scores and search rankings.

## Remediation

Convert the hero image to WebP and route it through the Next.js Image component with `priority` set — this handles format serving, responsive resizing, and preloading in one step.

```tsx
import Image from 'next/image'

// src/components/hero.tsx
<Image
  src="/hero.webp"
  alt="Hero description"
  width={1200}
  height={630}
  priority
  quality={85}
/>
```

Convert an existing JPEG in bulk:

```bash
npx sharp-cli --input public/hero.jpg --output public/hero.webp --format webp
```

Target under 200KB for the 1x hero. If the converted WebP still exceeds that, reduce `quality` to 75 or crop to the displayed dimensions — serving a 2400px image in a 1200px slot wastes half the pixels.

## Detection

**The detection method for this pattern is part of AuditBuffet Pro.**

The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the [Page Speed Audit](https://auditbuffet.com/audits/marketing-page-speed). The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.

## External references

- iso-25010 performance-efficiency.resource-utilization

Taxons: performance

HTML version: https://auditbuffet.com/patterns/ab-001787
