What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 3 questions

Less than 30 seconds. Find out how much you really know about Google search.

🕒 ~30s 🎯 3 questions 📚 SEO Google

Official statement

If images are used incorrectly, they can cause layout shifts when they appear on the site and move elements around, which degrades user experience.
🎥 Source video

Extracted from a Google Search Central video

💬 EN 📅 02/07/2024 ✂ 19 statements
Watch on YouTube →
Other statements from this video 18
  1. Les images freinent-elles vraiment les performances SEO de votre site ?
  2. Quel format d'image choisir pour booster réellement les performances de votre site ?
  3. Faut-il vraiment automatiser la compression de vos images pour le SEO ?
  4. Faut-il vraiment adapter la taille de vos images selon l'appareil de l'utilisateur ?
  5. Picture et srcset pour le responsive : Google indexe-t-il vraiment toutes vos images ?
  6. Faut-il systématiquement utiliser le lazy-loading pour toutes les images en dessous de la ligne de flottaison ?
  7. Faut-il vraiment éviter le lazy-loading sur toutes vos images ?
  8. Faut-il vraiment utiliser l'attribut HTML loading pour optimiser le lazy-loading ?
  9. Les images sont-elles vraiment le principal frein à la performance de votre site ?
  10. Faut-il vraiment adapter la qualité d'image selon la taille d'écran pour le SEO ?
  11. Faut-il vraiment utiliser picture et srcset pour optimiser les images en responsive ?
  12. Comment exploiter les données structurées pour déclarer les versions alternatives d'images ?
  13. Faut-il vraiment activer le lazy-loading sur toutes les images below-the-fold ?
  14. Faut-il vraiment arrêter de lazy-loader toutes vos images ?
  15. Faut-il vraiment utiliser l'attribut HTML loading pour le lazy-loading ?
  16. 1:22 Faut-il vraiment migrer ses images vers WebP et AVIF pour améliorer son SEO ?
  17. 1:57 Faut-il vraiment automatiser la compression d'images pour le SEO ?
  18. 1:57 Faut-il vraiment vérifier manuellement la compression automatique de vos images ?
📅
Official statement from (1 year ago)
TL;DR

Google confirms that poorly implemented images cause layout shifts that degrade user experience. These layout shifts directly impact your CLS score, a major component of Core Web Vitals, and therefore potentially your rankings. The key: systematically specify image dimensions to prevent the browser from reorganizing the page during loading.

What you need to understand

Why do images cause layout shifts?

When a browser loads an HTML page, it starts displaying content before all resources (CSS, images, scripts) are downloaded. If an image's dimensions are not explicitly declared in the code, the browser initially reserves zero pixels for it.

When the image loads, the browser discovers its actual size and must reorganize all following elements to make room for it. This sudden shift — text jumping 300 pixels down, a button moving — constitutes a layout shift. Multiplied across multiple images, the effect becomes disastrous for users who click in the wrong place or lose their reading flow.

What's the connection to Core Web Vitals?

The Cumulative Layout Shift (CLS) precisely measures these unexpected visual shifts throughout the entire page lifespan. It's one of three Core Web Vitals metrics that Google uses as a confirmed ranking signal since the Page Experience Update.

A high CLS signals degraded user experience. Images without explicit dimensions represent the number one cause of problematic CLS on the majority of websites analyzed via Lighthouse or PageSpeed Insights. Fixing this point mechanically improves your CLS score — and potentially your rankings.

What are the most common implementation errors?

  • <img> tags without width and height attributes: the browser cannot calculate the aspect ratio before the image loads
  • Images as CSS backgrounds on containers without defined height: same problem, the container collapses then expands abruptly
  • Responsive images without aspect-ratio CSS: modern solutions (aspect-ratio) are not yet systematically deployed
  • Poorly configured lazy loading: lazy-loaded images without reserved placeholders aggravate shifts during scrolling
  • Dynamic ads and iframes: third-party content areas that insert themselves without prior space reservation

SEO Expert opinion

Does this statement change anything about already-known practices?

No — and that's precisely what's striking. The need to specify image dimensions to avoid layout shifts has been documented since the Core Web Vitals launch and even before, in web performance best practices. Martin Splitt is simply here reminding us of a technical fact.

What stands out is the lack of nuance in the statement. The declaration remains deliberately generic without addressing edge cases: responsive images with srcset, dynamic content, modern CSS grids. Let's be honest — this statement reads more like a public awareness message than a technical revelation.

Don't fixed dimensions pose problems for responsive design?

This is where the statement lacks precision. Specifying width and height in HTML does not mean freezing actual displayed dimensions — but rather defining the aspect ratio that modern browsers use to calculate necessary space.

With width="800" height="600" + img { max-width: 100%; height: auto; } in CSS, the image adapts perfectly to its container while maintaining a 4:3 ratio. The browser can thus reserve the correct space before loading. This mechanism has worked since 2019 in all evergreen browsers — but remains misunderstood or overlooked by many developers.

[To verify] Google has never published specific data on the exact correlation between CLS improvement and ranking gains. Case studies show positive effects, but the magnitude varies greatly depending on industry and competition.

In what cases does this rule become complex to apply?

Several real-world situations make optimization less straightforward than it appears. CMSs and page builders that auto-generate HTML frequently omit dimensional attributes, requiring template modifications or plugins.

Images uploaded by non-technical contributors pose an organizational challenge: how do you ensure each editor correctly enters dimensions, or that the system calculates them automatically? Third-party content (widgets, programmatic ads, social embeds) completely escapes webmaster control — and frequently causes layout shifts impossible to eliminate without sacrificing functionality.

Warning: Some JavaScript frameworks (React, Vue, Next.js) automatically manage image dimensions through their optimized components. Others (older WordPress versions, Drupal without specific modules) require manual intervention or post-processing scripts. Check your tech stack configuration before deploying a global solution.

Practical impact and recommendations

How do you concretely fix images causing layout shifts?

The most direct solution: systematically add width and height attributes to each <img> tag. These values must match the image file's intrinsic dimensions, even if CSS later resizes the display.

For responsive images with srcset, use the dimensions of the default source image (the one in src). The browser will calculate the ratio and apply it to all variants. If you use CSS Grid or Flexbox with images, supplement with aspect-ratio in CSS to guarantee stability.

Modern platforms like Next.js (Image component), Nuxt, or image CDNs (Cloudinary, Imgix) automatically manage these attributes — but only if you use their APIs. Plain HTML or traditional WYSIWYG editors require manual vigilance or post-processing scripts.

Which tools can you use to identify problematic images?

PageSpeed Insights and Lighthouse explicitly flag image elements without dimensions in the "Avoid large layout shifts" section. Chrome DevTools displays layout shifts in real-time via the Performance panel and the "Layout Instability" tab.

For large-scale analysis, Screaming Frog SEO Spider (paid version) extracts <img> tags and identifies those missing width/​height. WebPageTest offers a filmstrip visualization of shifts during loading — particularly useful for understanding the exact timing of problems.

Search Console does not directly report image-by-image layout shift issues, but the Core Web Vitals report indicates pages with insufficient CLS. Cross-reference this data with Lighthouse to target priority fixes.

What do you do about dynamic and third-party content?

Display ads and social widgets remain the blind spots of CLS optimization. Google recommends reserving minimum space via CSS (min-height) for ad placements, even if the actual ad differs slightly in size.

For Twitter, YouTube, and Instagram embeds: use wrappers with calculated aspect-ratio (the padding-bottom technique at 56.25% for 16:9). Lazy-load solutions must imperatively include a placeholder of the correct dimension — not just a spinner centered on a white background.

User-generated content (forums, comments with images) requires server-side processing: a script that analyzes uploaded files, extracts their dimensions, and automatically injects attributes into generated HTML. Without this automation, maintaining quality at scale is impossible.

  • Audit all <img> tags across your site using Screaming Frog or a custom crawler
  • Add width and height to every image, even responsive ones
  • Verify that CSS doesn't override ratios (max-width: 100%; height: auto; mandatory)
  • Implement aspect-ratio CSS for background image containers
  • Reserve space for third-party ads and embeds via min-height
  • Configure lazy-load with correctly sized placeholders
  • Automate dimension injection for dynamically generated content
  • Test pages with PageSpeed Insights and Chrome DevTools Performance
Layout shifts caused by poorly configured images remain a basic technical error that nonetheless penalizes thousands of sites. The fix is simple in theory — add two HTML attributes — but becomes quickly complex on sophisticated architectures with CMSs, third-party content, and multiple contributors. CLS improvements translate mechanically into better user experience and, in many observed cases, measurable ranking improvements. Facing the technical complexity of certain environments and the volume of pages to process, enlisting a specialized SEO agency enables you to deploy a structured optimization strategy, automate fixes through custom scripts, and integrate these best practices directly into content production workflows.

❓ Frequently Asked Questions

Faut-il aussi spécifier les dimensions pour les images en lazy-load ?
Oui, absolument. Le lazy-load retarde le téléchargement de l'image mais pas l'affichage de la balise HTML. Sans width/height, le navigateur ne peut pas réserver l'espace et provoquera un layout shift au moment où l'image entre dans le viewport et se charge.
Les attributs width et height empêchent-ils le responsive design ?
Non. Les navigateurs modernes utilisent ces valeurs pour calculer le ratio d'aspect, pas pour figer les dimensions affichées. Avec max-width: 100% et height: auto en CSS, l'image reste parfaitement responsive tout en conservant son ratio.
Comment gérer les images dont les dimensions varient selon le device ?
Utilisez les dimensions de l'image source par défaut (attribut src) même avec srcset. Le navigateur appliquera le même ratio à toutes les variantes. Complétez avec aspect-ratio en CSS si nécessaire pour des cas edge complexes.
Les layout shifts d'images impactent-ils directement le classement Google ?
Indirectement via le CLS, métrique Core Web Vitals utilisée comme signal de classement confirmé. Un CLS élevé causé par des images mal configurées peut pénaliser les positions, surtout dans des secteurs concurrentiels où les autres signaux sont équivalents.
Peut-on corriger automatiquement les images déjà publiées sur WordPress ?
Plusieurs plugins (comme Perfmatters, WP Rocket) ajoutent automatiquement les dimensions manquantes en analysant les fichiers de la médiathèque. Pour un contrôle total, un script serveur peut parser le HTML et injecter les attributs lors du rendu de la page.
🏷 Related Topics
Domain Age & History AI & SEO Images & Videos

🎥 From the same video 18

Other SEO insights extracted from this same Google Search Central video · published on 02/07/2024

🎥 Watch the full video on YouTube →

Related statements

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.