How to Restore HEIC Image Support in Ubuntu 26.04 LTS: A Step-by-Step Guide

By

Introduction

If you've recently upgraded to Ubuntu 26.04 LTS and found that your iPhone or Android photos saved in HEIC format refuse to open in the default Image Viewer, you're not alone. The error message "Could not load image" is not a bug—it's an intentional change by Ubuntu to remove the preinstalled HEIC decoder library. HEIC (High Efficiency Image Container) uses the H.265/HEVC compression standard, which is widely used by modern smartphones to save space. While this change improves system security and reduces licensing headaches, it leaves users without a straightforward way to view their own photos. Fortunately, restoring HEIC support is a quick process that takes only a few minutes. This guide walks you through the exact steps to install the necessary decoder and get your images displaying correctly again.

How to Restore HEIC Image Support in Ubuntu 26.04 LTS: A Step-by-Step Guide
Source: www.omgubuntu.co.uk

What You Need

Step-by-Step Instructions

Step 1: Open a Terminal Window

The installation requires command-line access. Launch the terminal by pressing Ctrl+Alt+T simultaneously, or by searching for "Terminal" in the applications menu. A black or purple window will appear where you'll type commands.

Step 2: Update the Package List

Before installing any new software, it's best to refresh the list of available packages from Ubuntu's repositories. This ensures you get the latest version of the HEIC decoder. Type the following command and then press Enter:

sudo apt update

You'll be prompted for your password. Type it (you won't see any characters as you type) and press Enter. The terminal will fetch updated package information; this usually takes 20–30 seconds.

Step 3: Install HEIC/HEIF Support Packages

The core library that enables HEIC decoding is libheif, along with its graphical integration for GNOME's image viewer. Install both by running:

sudo apt install libheif-progs heif-gdk-pixbuf heif-thumbnailer

If you prefer a minimal install, heif-gdk-pixbuf alone may suffice for viewing, but the other two improve the overall experience. Approve the installation by typing Y when prompted, then wait for the packages to download and install (usually under a minute).

Step 4: Verify the Installation

Once the packages are installed, test that the decoder works. Locate a HEIC file (for example, on your connected smartphone or a downloaded test image). Right-click the file in Nautilus and select Open With Image Viewer. Alternatively, double-click it. If the image now displays correctly, you're all set. If you still see the error, try restarting the image viewer or logging out and back in.

How to Restore HEIC Image Support in Ubuntu 26.04 LTS: A Step-by-Step Guide
Source: www.omgubuntu.co.uk

Step 5: (Optional) Restart File Manager to See Thumbnails

If you installed heif-thumbnailer, thumbnails for HEIC files should appear automatically in Nautilus after a few seconds. To force an immediate refresh, press Ctrl+F5 or close and reopen the file manager window. For a full flush, you can restart Nautilus:

nautilus -q

Then reopen Nautilus from the applications menu.

Tips and Troubleshooting

With these steps completed, your Ubuntu 26.04 LTS system will once again display HEIC images without any errors. This quick fix restores full functionality while keeping your system lean and secure.

Related Articles

Recommended

Discover More

Mastering Python Scope: A Step-by-Step Guide to the LEGB RuleFrom Cockpit to Tower: How NASA’s Digital Push Is Transforming Airport ClearancesAzure IaaS Security: A Layered Approach Through Defense in Depth and Secure DesignVolla Phone Plinius Launches as Rugged Dual-OS Smartphone: Ubuntu Touch or Google-Free Android10 Fascinating Insights into Alan Turing and the Play 'Breaking the Code' in Cambridge, MA