Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk3 min

HEIC Previews in Chrome: Why `onerror` Fires and How to Handle It

HEIC support varies by browser, version, and platform. Learn how to interpret image errors and choose robust fallbacks for site assets and user uploads.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A HEIC image can preview in a supported Safari or WebKit context and fail in Chrome because image-format support varies by browser engine, version, and platform. Treat an image error event as a signal to recover—not proof that the file is HEIC or that unsupported format is the only cause. For images you control, provide alternate formats with <picture>; for user-selected HEIC files, attempt a preview and keep a converted-preview or clear fallback state ready.

Why does a HEIC image work in Safari but fail in Chrome?

HEIC is a high-efficiency image format used for photos in Apple’s ecosystem. WebKit added HEIC support in Safari 17.0, including Safari View Controller and WKWebView on supported Apple platforms. That announcement does not mean every browser using WebKit, or every configuration of an Apple device, behaves identically. WebKit’s Safari 17.0 feature announcement describes the support and its scope.

As an Amazon Associate I earn from qualifying purchases.

The compatibility snapshot on Can I Use, accessed October 8, 2026, lists Safari support beginning with version 17 and Chrome as unsupported in the listed versions. This is a dated snapshot, not a promise about every device, codec configuration, or future browser release. Check the HEIF/HEIC compatibility table for its current browser-version entries.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

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

As a result, the same file may render in one browser context and fail in another. A browser label alone cannot establish whether a particular client can decode a particular image.

#1 Best Overall
Luma: HEIF (*.heic) Viewer and Converter
  • Browse and view any folder containing *.heic files.
  • Open and view *.heic images.
  • Save and share *.heic images in *.jpeg format.
  • Batch convert any number of *.heic images preserving quality and metadata.
  • Preserve all image metadata like: location, Exif, XMP, Copyright, ICC profile.

What does an image onerror event tell you?

An img error event means the image could not be loaded or rendered. MDN lists an unsupported image format as one possible cause, but also identifies invalid or empty source values and corrupted image data or metadata. The event is useful for recovery, but it does not identify the file format or diagnose the underlying failure by itself. MDN’s <img> reference documents the event and possible causes.

For that reason, avoid code that treats every image error as proof that the file is HEIC. Preserve a fallback path for format incompatibility and for ordinary loading or data failures.

Rank #2
Imagd - Heic to Jpeg, Png Image Converter
  • 🖼️ A simple app that "just works".
  • 🖼️ No loss in details or image quality.
  • 🖼️ No more annoying ads or confusing user interface.
  • 🖼️ Convert an unlimited number of images for free at no hidden cost.
  • 🖼️ Click on the Add Images button at the bottom-right corner.

Which preview fallback fits your image workflow?

Approach Useful when Trade-off
<picture> with alternate sources and an <img> fallback Your site controls the assets and can supply multiple encodings. You must create or serve alternate files; the browser chooses among the sources you provide.
Attempt a HEIC preview, with a failure state or converted-preview fallback Users supply HEIC files, so you cannot guarantee a pre-generated alternate. A runtime failure can have several causes, and onerror alone cannot identify unsupported HEIC specifically.

How to provide fallbacks for images your site controls

Use <picture> when you can publish alternate encodings. It lets the browser choose among the image sources you provide, while the nested <img> remains the fallback. Select formats based on the browsers you target and retain an option with broad support when coverage matters. MDN describes this pattern and browser support for alternatives such as AVIF and WebP in its image file type and format guide.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
<picture>
  <source srcset="photo.avif" type="image/avif">
  <source srcset="photo.webp" type="image/webp">
  <img src="photo.jpg" alt="Description of the photo">
</picture>

This example assumes the site has created and serves all three files. The browser selects among the supplied sources; the fallback is only useful if its file is available and valid.

Rank #3
WARM FUZZY LED 3D Viewer Snakes | USB-C Rechargeable
  • Get Up Close with Snakes in Stunning 3D Detail: See boa constrictors, vipers, cobras, and more as if they’re right in front of you with our patent-pending LED backlit 3D Viewfinder. Every reel lights up from within, turning scary into fascinating and learning into fun. This thrilling twist on the classic reel viewer makes reptiles unforgettable.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to handle user-selected HEIC previews

  1. Attempt the preview. Do not rely on the filename extension alone to decide whether a client can render the file.
  2. Keep an error path. If loading or rendering fails, show a clear fallback state or use a converted preview where your application supports conversion.
  3. Do not over-diagnose the failure. An error event can reflect unsupported format, invalid source data, corruption, or another loading problem; communicate that the preview could not be displayed rather than asserting a specific cause.

Feature detection can help choose a preview path, but the sources here do not establish a standardized HEIC MIME-type test with consistent cross-browser results. Validate any detection technique against the browsers and platforms you support, and keep failure handling even when a detection check predicts support.

Quick Recap

Bestseller No. 1
Luma: HEIF (*.heic) Viewer and Converter
Luma: HEIF (*.heic) Viewer and Converter
Browse and view any folder containing *.heic files.; Open and view *.heic images.; Save and share *.heic images in *.jpeg format.
Bestseller No. 2
Imagd - Heic to Jpeg, Png Image Converter
Imagd - Heic to Jpeg, Png Image Converter
🖼️ A simple app that "just works".; 🖼️ No loss in details or image quality.; 🖼️ No more annoying ads or confusing user interface.

What should you test before shipping?

  • Test the actual image-render path in the browser and platform combinations you support, rather than inferring capability from a browser name or file extension.
  • Exercise both an image that renders and cases that fail, including an invalid source or damaged image data.
  • Confirm that authored images have a valid fallback asset and user uploads reach a useful failure state or supported conversion path.

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. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
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.