---
title: "Add Image Dimensions to Prevent Layout Shift | bseoa"
description: "Images on your page are missing explicit width and height attributes, which can cause layout shifts as images load. This negatively impacts your Cumulative Lay…"
image: "https://www.blackseoanalyzer.com/static/images/black-seo-analyzer-og-image.png"
canonical: "https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/image-missing-dimensions"
language: "en"
---

# Add Image Dimensions to Prevent Layout Shift

Web Vitals Analyzer

## What is this warning?

Images on your page are missing explicit width and height attributes, which can cause layout shifts as images load. This negatively impacts your Cumulative Layout Shift (CLS) score.

## How to Fix This Issue

### How to Fix It

#### The Problem

```
<img src="photo.jpg" alt="Photo">
```

#### The Solution

Add explicit width and height attributes to images.

```
<img src="photo.jpg" alt="Photo" width="800" height="600">
```

#### Why This Works

Explicit dimensions allow the browser to reserve space for images before they load, preventing layout shifts and improving CLS scores.

### SEO Impact

This issue can affect your site's search engine rankings and user experience. Addressing it promptly helps ensure optimal performance and visibility in search results.

### Automatic Detection

bseoa automatically checks for this warning during site analysis, along with hundreds of other technical SEO issues.

## Other Web Vitals Analyzer issues

- [Add Async or Defer Attributes to Scripts to Prevent Render Blocking](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/script-missing-async-or-defer)
- [Add Crossorigin Attribute to Font Resources for Optimal Loading](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/font-missing-crossorigin)
- [Add Font-Display Property for Better Text Rendering](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/font-missing-font-display)
- [Add Media Attributes to Stylesheets for Better Performance](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/stylesheet-missing-media-attribute)
- [Add Preconnect Hints for Critical Third-Party Origins](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/missing-preconnect-hint)
- [Add Preload Attributes to LCP Video for Better Performance](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/lcp-video-missing-preload)
- [Add Preload Hints for LCP Element Resources](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/lcp-element-missing-preload-hint)
- [Add Responsive Images to LCP Element for Better Performance](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/lcp-image-missing-srcset)
- [Add Responsive Images with Srcset for Better Performance](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/image-missing-srcset)
- [Avoid document.write() to Prevent Parser Blocking](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/document-write-blocks-parsing)
- [Break Up Long JavaScript Tasks to Improve Responsiveness](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/potential-for-long-running-task)
- [Eliminate Render-Blocking Resources for Faster Page Rendering](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/render-blocking-resources-found)
- [Eliminate Render-Blocking Scripts for Faster Page Rendering](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/render-blocking-scripts-found)
- [Extract and Inline Critical CSS for Faster Initial Render](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/no-critical-css)
- [Fix Layout Shifts for a Stable Visual Experience](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/recommendation-to-fix-layout-shift)
- [Font Not in WOFF2 Format: What WOFF2 Is and How to Convert Your Fonts](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/font-not-woff2)
- [Implement Lazy Loading for Images to Improve Core Web Vitals](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/image-missing-lazy-loading)
- [Implement Lazy Loading for Non-Critical Resources](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/async-resource-missing-lazy-loading)
- [Improve Core Web Vitals for Better User Experience and SEO](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/recommendation-to-improve-web-vitals-metric)
- [Minify CSS Files to Speed Up Rendering](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/stylesheet-not-minified)
- [Minify JavaScript Files to Reduce Page Weight](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/script-not-minified)
- [Optimize Font Display for LCP Text Elements](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/lcp-text-missing-font-display)
- [Optimize Font File Sizes for Better Web Performance](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/font-size-too-large)
- [Optimize Heavy Computations to Improve Interaction Performance](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/potential-for-heavy-computation)
- [Optimize Image Size for Faster Page Loads](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/image-size-too-large)
- [Optimize LCP Image Loading for Better Core Web Vitals](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/lcp-image-missing-loading)
- [Optimize Specific Resources for Improved Page Performance](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/recommendation-to-optimize-resource)
- [Optimize Third-Party Script Loading for Better Performance](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/third-party-scripts-found)
- [Preload Critical Resources for Faster Page Rendering](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/critical-resource-loaded-late)
- [Reduce DOM Size to Improve Rendering Performance](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/large-dom-size)
- [Reduce Script File Size for Better Performance](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/script-size-too-large)
- [Reduce Stylesheet Size for Faster Page Rendering](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/stylesheet-size-too-large)
- [Reduce the Number of Network Requests for a Faster Page Load](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/high-number-of-network-requests)
- [Reduce Total JavaScript Size for Faster Page Interactivity](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/total-javascript-size-too-large)
- [Reduce Total Page Size for Faster Load Times](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/total-page-size-too-large)
- [Replace Inline Event Handlers with Modern JavaScript](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/inline-event-handlers-found)
- [Reserve Space for Dynamic Content to Prevent Layout Shift](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/dynamic-content-missing-dimensions)
- [Use Modern Image Formats for Better Compression and Performance](https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/image-not-in-modern-format)

## Ready to Unlock Your Site's Full SEO Potential?

Choose the license that fits your needs and start getting the deep, actionable insights you deserve.

[Download Free Trial](https://www.blackseoanalyzer.com/en/free-trial) [Purchase Single License](https://www.blackseoanalyzer.com/buy/single)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.blackseoanalyzer.com/#organization","name":"Fiscus Technology, LLC","url":"https://www.blackseoanalyzer.com/","logo":"https://www.blackseoanalyzer.com/static/images/black-seo-analyzer.png","founder":{"@type":"Person","name":"Seth Black"}},{"@type":"WebSite","@id":"https://www.blackseoanalyzer.com/#website","name":"bseoa","url":"https://www.blackseoanalyzer.com/","publisher":{"@id":"https://www.blackseoanalyzer.com/#organization"}},{"@type":"TechArticle","@id":"https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/image-missing-dimensions#article","headline":"Add Image Dimensions to Prevent Layout Shift","name":"Add Image Dimensions to Prevent Layout Shift","description":"Images on your page are missing explicit width and height attributes, which can cause layout shifts as images load. This negatively impacts your Cumulative Layout Shift (CLS) score.","url":"https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/image-missing-dimensions","image":{"@type":"ImageObject","url":"https://www.blackseoanalyzer.com/static/images/black-seo-analyzer-og-image.png","width":1200,"height":630},"author":{"@type":"Person","name":"Seth Black","url":"https://www.blackseoanalyzer.com/about"},"publisher":{"@id":"https://www.blackseoanalyzer.com/#organization"},"mainEntityOfPage":{"@type":"WebPage","@id":"https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/image-missing-dimensions"},"inLanguage":"en-US","keywords":"technical SEO, SEO warning, Seth Black&#39;s SEO Analyzer"},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.blackseoanalyzer.com/"},{"@type":"ListItem","position":2,"name":"Technical SEO Warnings","item":"https://www.blackseoanalyzer.com/en/technical-seo"},{"@type":"ListItem","position":3,"name":"Add Image Dimensions to Prevent Layout Shift","item":"https://www.blackseoanalyzer.com/en/technical-seo/web-vitals-analyzer/image-missing-dimensions"}]}]}
```
