October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

Why AMP Images Disappeared: Correctly Sizing Responsive Elements

The SitePoint report was a missing-size/layout symptom. Current AMP practice is to declare each image’s ratio, use layout="responsive" for fluid media, and constrain its parent container.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The historical SitePoint report describes an AMP image-sizing problem, not a proven browser bug: images appeared in Firefox and an iPad Mini 2 but failed intermittently in desktop Chrome and Opera after <img> elements were changed to <amp-img> without explicit dimensions. Current AMP guidance explains the likely class of problem: AMP must know an image’s dimensions in advance so it can reserve space and calculate its aspect ratio.

What the 2016 SitePoint thread actually established

On March 2, 2016, SitePoint user John_Betong reported inconsistent image display after replacing ordinary <img> tags with <amp-img>. The images worked in Firefox and on an iPad Mini 2, but not reliably in desktop Chrome and Opera when width and height were omitted. He also reported that CSS such as width:88%; max-width:888px; did not appear to resolve the issue.

A responder mentioned a Chrome getClientRect error, noted that images could appear in developer tools under some conditions, and tentatively suggested layout="responsive". The thread is closed; it does not provide a reproduced test case, a verified browser/version matrix, a confirmed root cause, or a demonstrated bulk-conversion method. The error and the developer-tools observation should therefore be treated as historical symptoms, not as proof of what caused the failure.

Why AMP requires dimensions before loading an image

An AMP image resource needs a predictable box before its file is fetched. The runtime uses the declared dimensions to infer the aspect ratio and reserve layout space. This prevents content from shifting as the image loads and lets AMP calculate how the element should behave within its parent.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Motorola Moto g - 2026 | Unlocked | Made for US 4/128GB | 50MP Camera | Pantone Slipstream, Cellular_Phone
  • Universal unlocked. Compatible with all major U.S. carriers, including Verizon, AT&T, T-Mobile and other prepaid carriers.
  • Super-bright, super-smooth 6.7" display. See your screen clearly even outdoors in sunlight, and enjoy seamless views with a fast-refreshing 120Hz display.*
  • AI-powered camera system. Take stunning photos in any light with the 50MP camera**, look your best with a 32MP selfie cam*****, and capture extreme close-ups.
  • Superfast 5G performance. Unleash your entertainment at 5G speed*** with the MediaTek Dimensity 6300 chipset and up to 12GB of RAM with RAM Boost****.
  • Long-lasting battery + TurboPower charging. Power through day after day with a 5200mAh battery, then get hours of power in just minutes.****

CSS alone does not replace the required intrinsic sizing information. A percentage width or a parent’s max-width can control the available display width, but AMP still needs numeric width and height attributes on the component for the ratio.

The standard responsive pattern

For a fluid image with a known aspect ratio, provide dimensions representing that ratio and add layout="responsive":

Rank #2
Sale
Samsung Galaxy A17 5G Smart Phone 128GB US 1 Yr Manufacturer Warranty Black
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.
<amp-img
  src="/images/example.jpg"
  width="1200"
  height="800"
  layout="responsive"
  alt="Description of the image">
</amp-img>

The element expands to the width available from its container and derives its height from the declared 1200:800 ratio. The attributes do not need to match the image’s intended desktop pixel size; they must preserve the correct ratio. For example, 600 by 400 expresses the same ratio as 1200 by 800.

Constrain the parent, not just the image

A responsive element can use all the width its container makes available. If that container spans the entire desktop viewport, the image may become wider than the design intends. Put the AMP image in a container whose CSS sets the desired maximum width, and center it when appropriate:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Samsung Galaxy A16 5G 128GB Cell Phone, Unlocked Android Smartphone, Large AMOLED Display, Durable Design, Super Fast Charging, Expandable Storage, US Version, 2025, Blue Black (Renewed)
  • Charger NOT Included, 6.7" Super AMOLED FHD+, 90Hz Refresh Rate, 385 ppi, 800 nits (HBM), 1080x2340px, 5000mAh Battery
  • 128GB, 4GB RAM, microSDXC, Exynos 1330 (5nm), Octa-Core, Mali-G68 MP2 or Mali-G57 MC2 GPU
  • Rear Camera: 50MP, f/1.8 (wide) + 5MP, f/2.2 (ultrawide) + 2MP, f/2.4 (macro), LED flash, panorama, HDR; Front Camera: 13MP, f/2.0, Android 14, up to 6 major Android upgrades, One UI 6.1
  • 3G: HSDPA 850/900/1700(AWS)/1900/2100; 4G LTE: 1/2/3/4/5/7/12/13/14/20/25/26/28/29/30/38/39/40/41/48/66/71, 5G: 2/5/25/41/66/71/77/78 SA/NSA/Sub6/mmWave - Nano-SIM + eSIM
  • US Model – Global Connectivity – Compatible with Most GSM Carriers like T-Mobile, AT&T, MetroPCS, etc. Will Also work with CDMA Carriers Such as Verizon, Straight Talk.
.article-media {
  width: 88%;
  max-width: 888px;
  margin-inline: auto;
}

The container determines the available width; layout="responsive" preserves the image ratio within that width.

Choosing an AMP layout

Layout Use it when Sizing behavior Requirement
responsive The image should be fluid and its ratio is known Scales to the container’s width while maintaining the declared ratio Declare proportional width and height
fixed The rendered dimensions should remain constant Uses the specified width and height rather than filling available space Choose deliberate fixed dimensions
Other AMP layouts The component needs behavior such as intrinsic, container-sized, or fill-style rendering Rules vary by layout Check the supported layouts for the AMP component before migrating

Do not assign responsive to every image automatically. A fixed logo, icon, or deliberately fixed illustration may need a different layout. Conversely, a photo that must adapt to article width generally needs a reliable aspect ratio and the responsive layout.

Rank #4
Sale
Samsung Galaxy A17 5G Smart Phone 128GB, US 1 Yr Manufacturer Warranty Blue
  • YOUR CONTENT, SUPER SMOOTH: The ultra-clear 6.7" FHD+ Super AMOLED display of Galaxy A17 5G helps bring your content to life, whether you're scrolling through recipes or video chatting with loved ones.¹
  • LIVE FAST. CHARGE FASTER: Focus more on the moment and less on your battery percentage with Galaxy A17 5G. Super Fast Charging powers up your battery so you can get back to life sooner.²
  • MEMORIES MADE PICTURE PERFECT: Capture every angle in stunning clarity, from wide family photos to close-ups of friends, with the triple-lens camera on Galaxy A17 5G.
  • NEED MORE STORAGE? WE HAVE YOU COVERED: With an improved 2TB of expandable storage, Galaxy A17 5G makes it easy to keep cherished photos, videos and important files readily accessible whenever you need them.³
  • BUILT TO LAST: With an improved IP54 rating, Galaxy A17 5G is even more durable than before.⁴ It’s built to resist splashes and dust and comes with a stronger yet slimmer Gorilla Glass Victus front and Glass Fiber Reinforced Polymer back.

A safe migration procedure

  1. Inventory the source images. Record each file’s actual pixel dimensions, or define the intentional crop ratio if the page uses a cropped presentation.
  2. Replace the element with valid AMP markup. Add numeric width and height values that preserve the intended ratio, plus meaningful alternative text.
  3. Select the layout per image. Use layout="responsive" for fluid media; use a fixed layout when the design requires fixed dimensions. Do not assume one ratio or one layout fits the whole site.
  4. Control the available width. Apply the design’s width and max-width rules to the parent container. A child cannot be made narrower than intended if its parent still offers unrestricted width without other constraints.
  5. Validate the rendered page. Test representative images in the browsers and viewport sizes your audience uses, and inspect the element’s computed box when an image seems absent. Validation can reveal malformed markup or CSS conflicts, but it does not turn the old forum’s unverified error into a confirmed diagnosis.
  6. Handle special cases explicitly. Images with unknown dimensions, intentional art direction, or different mobile and desktop crops require a chosen ratio or a component/layout strategy suited to that presentation; they should not receive a guessed universal ratio.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common mistakes and their symptoms

Omitting both dimensions

Without the advance dimensions AMP cannot reliably establish the image’s aspect ratio and layout box. The result can be an image that appears missing or behaves inconsistently, especially when surrounding CSS depends on the element’s size.

Using CSS width without a ratio

width:88% and max-width:888px describe available width, not the image’s intrinsic height. Keep those rules for the container, but still declare proportional AMP dimensions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Tracfone Motorola Moto G 2025, 64GB, Saphire Blue (Locked to
  • Carrier: This phone is locked to Tracfone, which means this device can only be used on the Tracfone wireless network. Tracfone plan required, activating is easy, just 3 steps.
  • DISPLAY: Immersive viewing on a 6.7-inch super-bright 120Hz display with powerful stereo speakers and Bass Boost for cinematic entertainment.
  • CAMERA SYSTEM: Advanced 50MP Quad Pixel camera captures sharp, detailed photos and videos in any lighting condition
  • PERFORMANCE: Lightning-fast 5G connectivity paired with a powerful processor and RAM Boost for smooth multitasking.
  • BATTERY LIFE: Long-lasting 5000mAh battery with TurboPower charging technology delivers hours of power in minutes.

Guessing one ratio for every file

A universal ratio distorts images or reserves the wrong height. Derive values from each source image or from the crop ratio the design intentionally uses.

Assuming the old Chrome error proves the cause

The SitePoint responder’s getClientRect observation was tentative and was not reproduced in the closed thread. Treat it as a debugging clue from that report, not as a documented AMP failure mode or a migration recipe.

Can an entire site be converted automatically?

There is no evidence in the SitePoint discussion that a global conversion succeeded, and the thread does not establish an automatic workflow. A scripted migration can replace tag syntax, but it cannot safely infer the correct ratio, crop policy, layout choice, parent-width constraint, or alternative text for every image. A reliable process still requires per-image metadata and representative validation.

The Bottom Line

For a responsive AMP image, declare accurate proportional width and height values, add layout="responsive", and constrain the parent container when necessary. The 2016 SitePoint thread records a real user symptom and a tentative suggestion, but it does not prove a single browser bug or an automatic site-wide fix.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
  2. Cupertino desk5 min
    Apple Unveils AirPods Max 2: The Upgrade That Should Have Happened Years AgoAirPods Max 2 adds H2-powered audio features and Apple claims up to 1.5× more effective ANC, but its design, Smart Case, and 20-hour battery rating are unchanged. Wired lossless audio…
  3. Cupertino desk4 min
    Apple’s OLED Touch MacBooks Are Coming—but the Dynamic Island Is the Real GambleApple has not announced an OLED touchscreen MacBook, but reports point to high-end models arriving in late 2026 or early 2027. The reported Mac Dynamic Island could be useful, but…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.