{
  "id": 21417279,
  "title": "Compare intrinsic and rendered image widths when debugging layout",
  "url": "https://urgent.news/2026/11/23/compare-intrinsic-and-rendered-image-widths-when-debugging-layout",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-23T15:33:34.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/morphio/compare-intrinsic-and-rendered-image-widths-when-debugging-layout-23cc"
  },
  "original_language": "en",
  "account": null,
  "summary": "Start with two numbers when a photo preview looks blurry. After the image loads, read its naturalWidth and its getBoundingClientRect().width. The first is the intrinsic width in CSS pixels. The second is the width of the rendered box. Use an image with no border or transform for this check. If the intrinsic width is 400 CSS pixels and the box is 600 CSS pixels wide, look for the layout rule that…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}