A Complete Guide to Resolving HEIC Image Loading Errors in Ubuntu 26.04 LTS

By ● min read

Introduction

If you’ve copied your latest smartphone photos to your Ubuntu 26.04 LTS machine only to be greeted by a frustrating “Could not load image” message in the default Image Viewer, you’re not alone. This error strikes HEIC (High Efficiency Image Container) files — a modern format used by iPhones and many Android devices — because Ubuntu 26.04 LTS no longer ships with a built-in decoder for that format. While this change was intentional for licensing reasons, it’s straightforward to fix. This guide walks you through installing the necessary decoder so that your HEIC photos display perfectly, just as they would on your phone. No advanced skills required — just a few terminal commands and five minutes of your time.

A Complete Guide to Resolving HEIC Image Loading Errors in Ubuntu 26.04 LTS
Source: www.omgubuntu.co.uk

What You Need

Step-by-Step Instructions

Step 1: Confirm the Problem

Before making any changes, let’s verify that the issue is indeed the missing HEIC decoder. Try opening an HEIC file in the default Image Viewer (GNOME’s LensFlares or Eye of GNOME). If you see a pop-up saying “Could not load image” or the photo appears as a blank placeholder, the decoder is not installed.

Alternatively, you can check from the terminal:

apt list --installed 2>/dev/null | grep -i heif

If this command returns nothing (or only lists unrelated packages), the libheif library is missing — that’s the core decoder for HEIC/HEIF formats.

Step 2: Update Your Package List

It’s always a good idea to refresh your package metadata before installing new software. Open a terminal and run:

sudo apt update

This downloads the latest package lists from Ubuntu’s repositories. Wait for it to finish – usually takes a few seconds.

Step 3: Install the HEIC Decoder Library

The essential component is libheif, which provides HEIC decode (and encode) support. The quickest way is to install the libheif1 package and its dependencies. Run:

sudo apt install libheif1

Ubuntu will automatically pull in any required additional libraries (e.g., libde265). Type Y when prompted. This single package is enough to let Image Viewer and many other applications handle HEIC files.

If you also want command-line utilities to convert HEIC images to other formats, install the full suite:

sudo apt install libheif-examples

This gives you tools like heif-convert and heif-info.

Step 4: Verify the Installation

After installation, check that the library is now present:

apt list --installed 2>/dev/null | grep -i heif

You should see libheif1 (and possibly libheif-examples) listed. Now try opening an HEIC file again in the Image Viewer. The photo should display normally, with all its colors and details intact.

Step 5: (Optional) Test with Other Applications

While the default viewer now works, you may also use other photo software like Shotwell, GIMP, or eog (Eye of GNOME). Open the same HEIC file in each to confirm they can read it. If any still fail, they might require an additional plugin – but in most cases, installing libheif1 is sufficient system-wide.

A Complete Guide to Resolving HEIC Image Loading Errors in Ubuntu 26.04 LTS
Source: www.omgubuntu.co.uk

For GIMP, you may need to install the gimp-plugin-heif package:

sudo apt install gimp-plugin-heif

Step 6: (Optional) Batch Convert HEIC Files for Compatibility

If you frequently share photos with people using older software that doesn’t support HEIC, you may want to convert a batch of images to a universal format like JPEG. The heif-convert tool from libheif-examples makes this easy.

Navigate to your folder of HEIC files and run:

heif-convert photo.heic photo.jpg

To convert all HEIC files in the current directory at once, use a loop:

for f in *.heic; do heif-convert "$f" "${f%.heic}.jpg"; done

This creates JPEG copies that any device or operating system can open.

Tips and Troubleshooting

Conclusion

With just two terminal commands (sudo apt update and sudo apt install libheif1), you can restore full HEIC image support in Ubuntu 26.04 LTS. Whether you use your computer for casual photo browsing or professional editing, this tiny fix eliminates the “Could not load image” error and lets you work with modern smartphone photos natively. No fiddling with unsupported file conversions — your images will look as crisp as the day you snapped them.

Tags:

Recommended

Discover More

The Gentlemen Ransomware and SystemBC: Inside a Growing RaaS Operation and Proxy Malware DeploymentAWS Unveils Next-Gen AI Agents and Expands OpenAI Partnership at April 28 EventSecuring AI Agents Against Identity Theft: A Zero-Trust Credential Governance GuideTracking Your Site's AI Citations: A Practical Measurement FrameworkAbandoned Coal Mines Power Clean Energy Revolution in British Columbia Town