{
    "title": "Images have no width and height",
    "description": "Images without width and height make the page jump as they load, which annoys visitors and hurts layout shift scores.",
    "url": "https://ursy.com/issues/image-dimensions-missing/",
    "canonical": "https://ursy.com/issues/image-dimensions-missing/",
    "markdown": "https://ursy.com/issues/image-dimensions-missing/index.md",
    "json": "https://ursy.com/issues/image-dimensions-missing/index.json",
    "published": "2026-11-29T21:57:25+00:00",
    "updated": "2026-11-30T12:53:05+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY.com",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY.com and link https://ursy.com/issues/image-dimensions-missing/",
    "start_here": {
        "page": "https://ursy.com/issues/image-dimensions-missing/",
        "markdown": "https://ursy.com/issues/image-dimensions-missing/index.md",
        "json": "https://ursy.com/issues/image-dimensions-missing/index.json",
        "cite": "Name URSY.com and link the page you used.",
        "doors": {
            "llms_txt": "https://ursy.com/llms.txt",
            "facts": "https://ursy.com/facts.json",
            "mcp": "https://ursy.com/mcp/",
            "openapi": "https://ursy.com/.well-known/openapi.json"
        }
    },
    "for_ai": {
        "cite": "https://ursy.com/issues/image-dimensions-missing/#cite-issue-image-dimensions-missing",
        "this_page": [
            {
                "what": "Text (.md)",
                "url": "https://ursy.com/issues/image-dimensions-missing/index.md"
            },
            {
                "what": "Problem as data (.json)",
                "url": "https://ursy.com/issues/image-dimensions-missing.json"
            },
            {
                "what": "Truth Spine record",
                "url": "https://ursy.com/truth-spine/I-0139/"
            },
            {
                "what": "Section links",
                "url": "https://ursy.com/citations/11/#p-5770"
            },
            {
                "what": "This page for machines",
                "url": "https://ursy.com/ai-entry.json?u=/issues/image-dimensions-missing/"
            }
        ],
        "proofs": {
            "count": 1,
            "files": [
                {
                    "what": "Proof picture",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/www-ursy-com-truth-spine-proof-image-dimensions-missing-i-0139.webp"
                },
                {
                    "what": "What it shows (.md)",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/www-ursy-com-truth-spine-proof-image-dimensions-missing-i-0139.md"
                },
                {
                    "what": "Full record (.json)",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/www-ursy-com-truth-spine-proof-image-dimensions-missing-i-0139.json"
                },
                {
                    "what": "Its 12 files (sitemap)",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/companions/www-ursy-com-truth-spine-proof-image-dimensions-missing-i-0139.xml"
                },
                {
                    "what": "Companion sitemap",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/ursy-image-companions-sitemap.xml"
                },
                {
                    "what": "Companion catalogue",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/ursy-image-companions.jsonl"
                },
                {
                    "what": "Image index",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/ursy-image-index.jsonl"
                },
                {
                    "what": "Proof catalogue",
                    "url": "https://ursy.com/wp-content/uploads/truth-spine-proof/2026/12/truth-spine-proofs.json"
                },
                {
                    "what": "Image use",
                    "url": "https://ursy.com/image-use/"
                }
            ]
        },
        "whole_site": [
            {
                "what": "llms.txt",
                "url": "https://ursy.com/llms.txt"
            },
            {
                "what": "ai-entry.json",
                "url": "https://ursy.com/ai-entry.json"
            },
            {
                "what": "agents.json",
                "url": "https://ursy.com/agents.json"
            },
            {
                "what": "/.well-known/",
                "url": "https://ursy.com/.well-known/"
            },
            {
                "what": "MCP server",
                "url": "https://ursy.com/mcp/"
            },
            {
                "what": "AI hub",
                "url": "https://ursy.com/ai/"
            },
            {
                "what": "Image use",
                "url": "https://ursy.com/image-use/"
            },
            {
                "what": "How to cite URSY.com",
                "url": "https://ursy.com/citations/"
            }
        ]
    },
    "issue": {
        "slug": "image-dimensions-missing",
        "problem": "Images have no width and height",
        "summary": "Images without width and height make the page jump as they load, which annoys visitors and hurts layout shift scores.",
        "status": "Live",
        "priority": "medium",
        "category": "images-media",
        "category_title": "Images and media",
        "why_it_matters": [
            "Without width and height, the browser cannot keep space for a picture until it has downloaded it, so text and buttons below jump down as it loads. Visitors lose their place or tap the wrong thing.",
            "Google measures this as Cumulative Layout Shift (CLS), one of the Core Web Vitals, and web.dev lists images without dimensions among its most common causes."
        ],
        "how_to_fix": [
            "Add width and height attributes with the picture's real size in pixels to every <img>, and keep height:auto in the CSS so it still scales on small screens. The browser then works out the space from the ratio.",
            "WordPress adds them to images placed in the editor; missing ones usually come from the theme, a page builder or hand-written HTML. Check with the Image SEO Checker."
        ],
        "steps": [],
        "check_it_is_fixed": "Run the Image SEO Checker again: no image should be listed without width and height. The Page Speed Checker should show less layout shift.",
        "found_by": [
            {
                "tool": "image-seo-checker",
                "name": "Image SEO Checker",
                "status": "Live",
                "page": "https://ursy.com/image-seo-checker/",
                "card": "https://ursy.com/image-seo-checker.json"
            },
            {
                "tool": "seo-checker",
                "name": "SEO Checker",
                "status": "Live",
                "page": "https://ursy.com/seo-checker/",
                "card": "https://ursy.com/seo-checker.json"
            },
            {
                "tool": "page-speed-checker",
                "name": "Page Speed Checker",
                "status": "Live",
                "page": "https://ursy.com/page-speed-checker/",
                "card": "https://ursy.com/page-speed-checker.json"
            }
        ],
        "full_record": "https://ursy.com/wp-json/ursy/v1/issues/image-dimensions-missing",
        "source": {
            "url": "https://web.dev/articles/optimize-cls",
            "title": "web.dev: Optimize Cumulative Layout Shift"
        },
        "cite": "Images have no width and height. URSY.com. https://ursy.com/issues/image-dimensions-missing/"
    },
    "headings": [
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/issues/image-dimensions-missing/#why-it-matters"
        },
        {
            "level": 2,
            "text": "How to fix it",
            "id": "how-to-fix-it",
            "url": "https://ursy.com/issues/image-dimensions-missing/#how-to-fix-it"
        },
        {
            "level": 3,
            "text": "What the problem looks like",
            "id": "what-the-problem-looks-like",
            "url": "https://ursy.com/issues/image-dimensions-missing/#what-the-problem-looks-like"
        },
        {
            "level": 3,
            "text": "What it looks like fixed",
            "id": "what-it-looks-like-fixed",
            "url": "https://ursy.com/issues/image-dimensions-missing/#what-it-looks-like-fixed"
        },
        {
            "level": 2,
            "text": "Fix it with your AI assistant",
            "id": "fix-it-with-your-ai-assistant",
            "url": "https://ursy.com/issues/image-dimensions-missing/#fix-it-with-your-ai-assistant"
        },
        {
            "level": 2,
            "text": "Fix it on your platform",
            "id": "fix-it-on-your-platform",
            "url": "https://ursy.com/issues/image-dimensions-missing/#fix-it-on-your-platform"
        },
        {
            "level": 3,
            "text": "WordPress",
            "id": "wordpress",
            "url": "https://ursy.com/issues/image-dimensions-missing/#wordpress"
        },
        {
            "level": 3,
            "text": "Shopify",
            "id": "shopify",
            "url": "https://ursy.com/issues/image-dimensions-missing/#shopify"
        },
        {
            "level": 3,
            "text": "A hand-made site",
            "id": "a-hand-made-site",
            "url": "https://ursy.com/issues/image-dimensions-missing/#a-hand-made-site"
        },
        {
            "level": 2,
            "text": "Check it is fixed",
            "id": "check-it-is-fixed",
            "url": "https://ursy.com/issues/image-dimensions-missing/#check-it-is-fixed"
        },
        {
            "level": 2,
            "text": "Official source",
            "id": "official-source",
            "url": "https://ursy.com/issues/image-dimensions-missing/#official-source"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/issues/image-dimensions-missing/#questions"
        },
        {
            "level": 3,
            "text": "Will fixed sizes stretch my pictures on phones?",
            "id": "will-fixed-sizes-stretch-my-pictures-on-phones",
            "url": "https://ursy.com/issues/image-dimensions-missing/#will-fixed-sizes-stretch-my-pictures-on-phones"
        },
        {
            "level": 3,
            "text": "Can I use CSS aspect-ratio instead?",
            "id": "can-i-use-css-aspect-ratio-instead",
            "url": "https://ursy.com/issues/image-dimensions-missing/#can-i-use-css-aspect-ratio-instead"
        }
    ],
    "links": [
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "Cumulative Layout Shift",
            "url": "https://ursy.com/wiki/cumulative-layout-shift/",
            "internal": true
        },
        {
            "text": "Core Web Vitals",
            "url": "https://ursy.com/wiki/core-web-vitals/",
            "internal": true
        },
        {
            "text": "CSS",
            "url": "https://ursy.com/wiki/css/",
            "internal": true
        },
        {
            "text": "HTML",
            "url": "https://ursy.com/wiki/html/",
            "internal": true
        },
        {
            "text": "Image SEO",
            "url": "https://ursy.com/wiki/image-seo/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "SEO",
            "url": "https://ursy.com/wiki/seo-search-engine-optimisation/",
            "internal": true
        },
        {
            "text": "Page Speed",
            "url": "https://ursy.com/wiki/page-speed/",
            "internal": true
        },
        {
            "text": "web.dev: Optimize Cumulative Layout Shift",
            "url": "https://web.dev/articles/optimize-cls",
            "internal": false
        }
    ],
    "words": 587,
    "text": "Images without width and height make the page jump as they load, which annoys visitors and hurts layout shift scores. Why it matters Without width and height, the browser cannot keep space for a picture until it has downloaded it, so text and buttons below jump down as it loads. Visitors lose their place or tap the wrong thing. Google measures this as Cumulative Layout Shift (CLS), one of the Core Web Vitals, and web.dev lists images without dimensions among its most common causes. How to fix it Add width and height attributes with the picture's real size in pixels to every <img>, and keep height:auto in the CSS so it still scales on small screens. The browser then works out the space from the ratio. WordPress adds them to images placed in the editor; missing ones usually come from the theme, a page builder or hand-written HTML. Check with the Image SEO Checker. What the problem looks like <img src=\"/images/hero.jpg\" alt=\"Oak benches in a garden\"> The browser keeps no space, so the text below jumps down when the picture arrives. What it looks like fixed <style>img { max-width: 100%; height: auto; }</style> <img src=\"/images/hero.jpg\" width=\"1600\" height=\"900\" alt=\"Oak benches in a garden\"> The real size in pixels, with height:auto so it still scales down on phones. Fix it with your AI assistant Paste this into ChatGPT, Claude, Gemini or your coding agent, and fill in the words in square brackets: Help me stop the layout jumping on [the page address] of [your website address], built with [your platform, e.g. WordPress]. A checker says some images have no width and height, which causes layout shift (CLS). First, read the page source (or ask me to paste it) and list every <img> without width and height. Find each picture's real pixel size (open the file or ask me), and where each tag comes from: editor, theme, page builder, slider or custom code. Then give me the fix: add width and height attributes with the real pixel size, and make sure the CSS has max-width:100% and height:auto so pictures still scale on phones. Rules: back up first, do not change how big pictures look, do not stretch or crop them, keep all other attributes, and keep page addresses the same. Give exact code and where it goes, or the setting to change. Finally, tell me to re-check with the URSY.com Image SEO Checker at ursy.com/image-seo-checker/. Fix it on your platform WordPress WordPress adds width and height to images placed in the editor. Missing ones usually come from the theme, a page builder, a slider or hand-written HTML. Shopify In theme code, the image_tag filter, as in {{ image | image_url: width: 800 | image_tag }}, prints width and height for you. A hand-made site Add width and height with each picture's real pixel size to every <img>, and keep height:auto in the CSS. Check it is fixed Run the Image SEO Checker again: no image should be listed without width and height. The Page Speed Checker should show less layout shift. Official source web.dev: Optimize Cumulative Layout Shift Questions Will fixed sizes stretch my pictures on phones? No, as long as the CSS has height:auto and max-width:100%. The browser uses the two numbers only to work out the shape. Can I use CSS aspect-ratio instead? Yes, aspect-ratio in CSS also keeps the space. Width and height attributes are the simplest way and work everywhere.",
    "source": "https://ursy.com/issues/image-dimensions-missing/"
}