Can't open .HEIC pictures

My Ubuntu Mate 24.04 can’t open pictures .HEIC, neither gimp, neither pinta, neither eye of mate and neither shotwell. Packages `heif-gdk-pixbuf` `libheif-examples` are already reinstalled.

Taken from Iphone 15

Here is a file I can’t open:

$ apt search heif-gdk-pixbuf ; apt search libheif-examples
En train de trier... Fait
Recherche en texte intégral... Fait
heif-gdk-pixbuf/noble-updates,noble-security,now 1.17.6-1ubuntu4.2 amd64  [installé, automatique]
  ISO/IEC 23008-12:2017 HEIF file format decoder - gdk-pixbuf loader

En train de trier... Fait
Recherche en texte intégral... Fait
libheif-examples/noble-updates,noble-security,now 1.17.6-1ubuntu4.2 amd64  [installé]
  ISO/IEC 23008-12:2017 HEIF file format decoder - examples 

Can you help me please?

is it .heic or .heif ?

I d/l a sample heic image, um24.04 displays it, I d/l a sample .heif image, um24.04 displays it.

dpkg -l | grep heif
ii  heif-gdk-pixbuf:amd64                    1.17.6-1ubuntu4.2                        amd64        ISO/IEC 23008-12:2017 HEIF file format decoder - gdk-pixbuf loader
ii  heif-thumbnailer                         1.17.6-1ubuntu4.2                        amd64        ISO/IEC 23008-12:2017 HEIF file format decoder - thumbnailer
ii  libheif-plugin-aomdec:amd64              1.17.6-1ubuntu4.2                        amd64        ISO/IEC 23008-12:2017 HEIF file format decoder - aomdec plugin
ii  libheif-plugin-aomenc:amd64              1.17.6-1ubuntu4.2                        amd64        ISO/IEC 23008-12:2017 HEIF file format decoder - aomenc plugin
ii  libheif-plugin-libde265:amd64            1.17.6-1ubuntu4.2                        amd64        ISO/IEC 23008-12:2017 HEIF file format decoder - libde265 plugin
ii  libheif1:amd64                           1.17.6-1ubuntu4.2                        amd64        ISO/IEC 23008-12:2017 HEIF file format decoder - shared library
user@um24:~$

Try sudo apt install libheif*

2 Likes

I open them with Krita. Then save them as jpeg. It's an Apple format. The first time I ran across it was when a friend that was an I phone user sent me a picture.

1 Like

Well spotted, I made a typo and didn't notice my mistake between heic and heif.

So, I confirm, it’s about heic pictures. I’ll test your proposal tomorrow

1 Like

Are these .HEIC photos taken with iOS18/iPhone18?

If so the version of heif-gdk-pixbuf and it's associated dependencies in the 24.04 repos won't open them.You could install the libheif ppa and upgrade to the latest version which I believe is 1.19.8 and should allow you to open those pics,just remember this is an unofficial ppa.

sudo add-apt-repository ppa:strukturag/libheif
sudo apt update
sudo apt upgrade
1 Like

Before I try something, here is a picture I can’t open. Can you download it and try to open on your system?

The mediainfo of the picture show there a lot of image, weid

Format : heic
Codec ID : heic (mif1/tmap/MiHE/miaf/MiHB/heic)
File size : 1.31 MiB
Writing application : Apple iOS 26.2.1
Writing hardware : Apple iPhone 15
...
Image #1
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Format Range@L3@Main
Codec ID : hvc1
...
Image #2
ID : 2
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Format Range@L3@Main
Codec ID : hvc1
...
Image #55
ID : 58
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main Still@L3@Main
Width : 1 134 pixels
Original width : 512 pixels

1 Like

The image downloaded as .jpeg file not a .heic

Notice when I open in new tab it says .jpeg

I used both Firefox and Waterfox.
When I click 'save as' is says .jpeg. Is the file just mislabled?

1 Like

I don't have or use dropbox. No option in my browser to do that:

Firefox on Linux does not natively open .heic (High Efficiency Image Coding) files by default.
libheif: This library can be used with various graphical tools to handle .heic images.

libheif is in the Ubuntu Mate Repository. I checked with Synaptic and I do have libheif installed.

1 Like

That's definitely a HEIF image. Since it was taken on an Apple device, those extra image streams might be data related to their bursts/live photo feature, or it might be thumbnails. I guess mediainfo is just exposing those internals.

This HEIC format acts like a "container", with a HEIF image inside. Just like MKV is a container for video with an AVC stream inside.

As @jymm says, installing libheif should enable programs to use that format.

1 Like

I did some more investigation.
Firefox and Waterfox can open .HEIC files on Linux, provided that libheif is installed.
Firefox and Waterfox do not automatically convert .HEIC files to .JPEG files

1 Like

Why is it opening as a jpeg file on Waterfox? You can see from the tab when I clicked open in new tab it is a jpeg file. I do have libheif installed. that will open a .heic picture but isn't capable of auto converting it.

Same if I click 'save image as' it says jpeg?

1 Like

I'm sure that's the thumbnail image generated by Dropbox. To get the original file, you'll need to click the "Download" icon next to Share then "Or continue with download only" in the pop up.

Most browsers don't actually natively support the format, except Safari. The HTML markup might specify what's available in an <image> tag for the browser to choose.

Some servers also do serve different formats (like WebP) despite the extension (.jpg) - servers usually look at the headers sent by the browser.

1 Like

Okay it's thumbnail image not the original image.

1 Like

Can't download without signing up for Dropbox.

Have you confirmed that the photo was an iOS18 photo?If it is then it won't open with heif-gdk-pixbuf 1.17.6 installed.

1 Like

According to Synaptic following packages related to “heif” are installed on my Ubuntu MATE 24.04.4 LTS PC, but the downloaded HEIC image does not open.

1 Like

get a sample image from Sample HEIF Files Download - Get Examples Instantly and test.

My um24.04 opens them.

1 Like

Please, forget standard samples.

I confirm again packages quoted here are already installed and can’t open it.

Here is a new link to get picture.HEIC that I can’t open:

this link gives me ... Download image-22-02-26-09-57-1.heic | LimeWire

2 Likes

Were those "sample" files taken with iOS18/iPhone18? I'm betting they probably were not as you were able to open them with the 6.17.7 version of heif-gdk-pixbuf that comes with 24.04.And if they were taken with iOS18 then you have at the very least the 1.19.8 version installed.

Be thankful you got that "error" message.Limewire is the same shi**y file sharing site it's always been.

1 Like

6.17.7 is outdated if you want to open up HEIC files taken with iOS18.

1 Like