How to Enable HEIC Image Support in Ubuntu 26.04 LTS

By

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:

  • A computer running Ubuntu 26.04 LTS (64-bit) with an active internet connection.
  • Access to a terminal (you can open one with Ctrl+Alt+T).
  • “sudo” privileges (your user account should be able to run administrative commands).
  • Optionally, a HEIC image file from your smartphone to test the fix.

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

  • Package not found: Ubuntu 26.04's default repositories might lag. If heif-gdk-pixbuf isn't available, try heif-gdk-pixbuf or libheif1. Run apt search heif to find the exact package name.
  • Permission denied: Ensure you use sudo for installation commands. If you don't have sudo privileges, contact your system administrator.
  • Still not working: Clear Nautilus thumbnail cache with rm -rf ~/.cache/thumbnails/* and try again.

Tips and Final Thoughts

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

  • Keep your system updated: Future updates might improve HEIC support. Run sudo apt update && sudo apt upgrade regularly.
  • Alternative image viewers: If the default Image Viewer still behaves oddly, consider installing gthumb or qiv, which also use GDK pixbuf loaders and benefit from the same fix.
  • Batch conversion: If you prefer to avoid HEIC entirely, use heif-convert (from libheif-examples) to convert files to JPEG or PNG. Example: heif-convert image.heic image.jpg.
  • Why this happened: Ubuntu 26.04 LTS intentionally removed the HEIC decoder due to licensing concerns related to H.265/HEVC. By installing heif-gdk-pixbuf, you're adding a free software implementation (libheif) that works around this.
  • Share this guide: Many users face this issue. Feel free to point them to this step-by-step solution.

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:

Related Articles

Recommended

Discover More

How to Scale a Developer Community into a Thriving Business: The Stack Overflow PlaybookThe Hacker News Unveils 2026 Cybersecurity Stars Awards: A Spotlight on Unsung Heroes9 Key Capabilities of OpenAI’s GPT-5.5 on Microsoft Foundry10 Surprising Facts About Vitamin B2's Role in Cancer Cell SurvivalDynamic Workflows: Custom Durable Execution for Every Tenant