How to Enable HEIC Image Support in Ubuntu 26.04 LTS

Introduction

If you've tried opening HEIC photos from your iPhone or Android device on Ubuntu 26.04 LTS and saw a "Could not load image" error in the default Image Viewer, you're not alone. This isn't a bug—it's an intentional removal of support that started with this LTS release. HEIC files (High Efficiency Image Container) use the H.265/HEVC compression standard, which isn't included out of the box. However, restoring this functionality is straightforward. In this guide, you'll learn exactly how to install the necessary decoder library and get your HEIC images loading again—no advanced skills required. We'll walk you through each step, from identifying the problem to verifying the fix.

How to Enable HEIC Image Support in Ubuntu 26.04 LTS
Source: www.omgubuntu.co.uk

What You Need

Before you start, make sure you have the following:

All commands in this guide are safe and won't affect your system configuration beyond adding the HEIC decoder.

Step-by-Step Instructions

Step 1: Confirm the Problem

First, verify that HEIC images indeed fail to open. Locate any .heic file (e.g., from your phone) and double-click it in the default Files app (Nautilus). If you see the error “Could not load image” or a blank preview, you've hit the missing library issue. Alternatively, run this command in the terminal to check if the required package is installed:

dpkg -l | grep heif

If no packages appear, support is indeed missing.

Step 2: Open a Terminal

Press Ctrl+Alt+T on your keyboard to launch a terminal window. You'll be greeted by a command-line prompt. All subsequent steps will be performed here.

Step 3: Update the Package List

Before installing anything, it's wise to refresh your local package database to ensure you get the latest version:

sudo apt update

Enter your user password when prompted. Wait for the update to complete.

Step 4: Install the HEIC Decoder Library

The critical package is heif-gdk-pixbuf, which provides the necessary decoder for HEIC images. Run this command:

sudo apt install heif-gdk-pixbuf

This package depends on libheif1 and other related libraries, which will be installed automatically. Confirm the installation by typing Y when prompted. The download is small (a few megabytes) and should complete quickly.

Step 5: Reload the Image Viewer (or Log Off/On)

For the change to take effect, you need to restart any applications that cache thumbnail generators. The easiest way is to log out of your session and log back in. Alternatively, you can kill the Nautilus file manager:

nautilus -q

Then restart it from the terminal or by opening any folder. The Image Viewer (Eye of GNOME) will also need to be relaunched if it was open.

Step 6: Test the Fix

Now try opening that HEIC file again. Double-click it in Files, and it should display correctly. You can also run a quick command to verify the decoder works:

How to Enable HEIC Image Support in Ubuntu 26.04 LTS
Source: www.omgubuntu.co.uk
gdk-pixbuf-query-loaders | grep -i heif

If you see a line containing “heif” (e.g., ImageLoader=heif), the installation was successful.

If images still don't load, try restarting your computer completely. In rare cases, you might also need to install the libheif-examples package for additional utilities:

sudo apt install libheif-examples

This isn't strictly necessary for viewing, but it can help with debugging.

Troubleshooting Common Issues

Tips and Final Thoughts

Here are a few extra pointers to make your experience with HEIC images on Ubuntu smoother:

With these steps, your Ubuntu 26.04 LTS system now fully handles HEIC images, just like previous releases. Enjoy seamless photo management from your smartphone!

Tags:

Recommended

Discover More

How to Handle a Marketing Misstep Like Apple's VP of Marketing CommunicationsSnapseed 4.0 for Android: Everything You Need to Know (Q&A)A Policymaker’s Guide to Reducing Online Harm While Protecting the Open InternetHow to Stop AI Code Errors From Reaching Your Pull Request ReviewOvercoming CVE Blocks: Deploying ClickHouse on Docker Hardened Images