For local conversion, this worked for me in Debian. Just downloaded the static build, ran the example conversion command, everything worked:

https://github.com/monostream/tifig

Answer from s0kr8s on Stack Exchange
Top answer
1 of 6
199

In recent Ubuntu versions (>= 18.04):

sudo apt-get install libheif-examples

And then

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

In older Ubuntu or Mint versions, first add this PPA and then do the above steps.

sudo add-apt-repository ppa:strukturag/libheif
sudo apt-get update
2 of 6
154

Ubuntu 22.04 quick start

  • install heif-gdk-pixbuf for support in at least eog (Eye of GNOME, GNOME Image Viewer).
  • install heif-thumbnailer for file manager (nautilus, nemo) thumbnails.
  • The available versions of Geeqie, ImageMagick, gThumb and many more (see below) have built-in support.

Official packages

Starting with Ubuntu 20.04: At least for eog (Eye of GNOME, GNOME Image Viewer), you have to install the package heif-gdk-pixbuf (no PPA needed). In a terminal run:

sudo apt install heif-gdk-pixbuf

This will install libheif1 and libde265-0 along.

Apparently KDE distros with KDE Frameworks 5.80 have added support for HEIF and HEIC Image Formats to all KDE Apps (news, KDE announcement, MR), but the support flag is not enabled yet in the default (K)ubuntu packages (ubuntu bug).

Programs/Apps that support HEIF via libheif1 include:

  • GNOME Image Viewer (Eye of GNOME - eog) is updated in Ubuntu 19.10 and later. (Thanks seanlano!) - if it does not work for you, see PPA tip below.
  • gThumb Image Viewer & Organizer 3.11.4+, in ≥ Ubuntu 22.04 (for older verstions see below)
  • Darktable, free open source photography application and raw developer (3.8+)
  • GPicView (0.2.5+), can be installed from the Software Center or directly from the project page. Thank you, adasiko.
  • digiKam (6.4+)
  • GIMP (2.10.2+)
  • Krita (4.2+)
  • gImageReader (Ubuntu 20.04+)
  • Kodi (free and open-source media player software application) with Add-on:HEIF image decoder
  • xviewer (based on Eye of GNOME) with heif-gdk-pixbuf
  • Shotwell (0.32+)
  • Geeqie (1.6+) in Ubuntu 22.04
  • heif-thumbnailer - a thumbnailer for HEIF images that can be used by Nautilus and Nemo.
  • libheif-examples – provides command-line utilities: heif-convert and heif-enc.

See How best to search for dependencies?

Programs/Apps to CONVERT HEIF/HEIC-pictures:
Most of the above mentioned apps support to convert a HEIC-photo, e.g. eog (Eye of GNOME, GIMP, Krita, GPicView.
Open the photo via one of these image viewer/editor, then select Export to JPG (or another image format like PNG) or Save as (choose a different image format then HEIC).

For batch conversion on the command-line, use heif-convert or ImageMagick's convert.

Unofficial Packages and older Ubuntu versions

If one is willing to install a Flatpak, Snap app, or PPA:

  • GNOME Image Viewer (Eye of GNOME - eog) can handle HEIF pictures with an updated gdk-pixbuf plugin which can be installed/updated with the above mentioned libheif-PPA on Ubuntu 14.04, 16.04, and 18.04. In a terminal run:

    sudo add-apt-repository ppa:strukturag/libheif
    

    Install the package heif-gdk-pixbuf. In a terminal run:

    sudo apt install heif-gdk-pixbuf
    
  • gThumb Image Viewer & Organizer has an unofficial PPA for Ubuntu 18.04, Ubuntu 20.04, Ubuntu 21.04, Ubuntu 21.10, Linux Mint 20 and derivatives:

    sudo add-apt-repository ppa:ubuntuhandbook1/apps  
    sudo apt update  
    sudo apt install gthumb 
    
  • Geeqie 1.6 has HEIF support. It is available in 22.04 ; it may be installed from AppImage, or on ubuntu 18.04 and 20.04 from PPA.

  • ImageMagick 6.9 with HEIF support is available on ubuntu 22.04 ; on ubuntu 18.04 and 20.04 from bleeding edge PPA which also provides an updated libheif1 (1.12 instead of 1.6 as of October'21). If the colors seem wrong/inverted, you may need to convert from YCbCr with e.g. display -colorspace sRGB (source: github)

  • Qt image plugin wraps libheif. It was created by jakar, and may be installed on ubuntu 14.04 to 19.04 from PPA. On more recent versions you may instead rebuild kimageformats as per bug 1951278.

Ubuntu 19.10
There are some prominent bugs in the shipped version of libheif1, so update to the latest version available from the PPA libheif by “struktur AG” team:
In a terminal: sudo add-apt-repository ppa:strukturag/libheif

Upgrade of packages (Sept 2020)
You also need to add the PPA strukturag/libde265 to get the correct dependencies:

sudo add-apt-repository ppa:strukturag/libde265  
sudo apt update  
sudo apt upgrade  

(If you get the error add-apt-repository: not found, make sure software-properties-common is installed, e.g. sudo apt install software-properties-common)

Those who do not wish to install a PPA may download the packages directly from the PPA webpages to install (dpkg -i) or recompile. Packages installed this way will not be automatically updated.

Online Tools

  • Google Photos and Dropbox both support HEIF.

  • There are other online converters (e.g. HEICtoJPEG), but check their privacy policies before use.

Miscellaneous

  • ImageMagick, as of 7.0.7-22, can be compiled with the --with-libheif flag. One-liner build with IMEI. (The pre-built AppImage does not support heic yet.)

  • tifig is described as "a fast HEIF image converter aimed at thumbnailing". However, it must currently be compiled from source.

  • Nokia HEIF Info and Source Code. However, Apple's implementation differs somewhat.

  • Windows 10 Build 17623 includes support for HEIF in the Photos app. However, the following may need to be installed before use:

    • HEIF Image Extensions

    • HEVC Video Extensions or HEVC Video Extensions from Device Manufacturer

🌐
Dedoimedo
dedoimedo.com › computers › heic-linux.html
How to view and convert HEIC images in Linux (Kubuntu)
If you have multiple files, you could try a little for loop. This isn't a big, critical problem, and you can work around it quite easily. If you wish to snap HEIC photos on your iPhone, at the very least, you can then convert them to other formats on your Linux machine using the heif-convert utility.
🌐
Learn Ubuntu MATE
learnubuntumate.weebly.com › open-heic-images.html
Open HEIC Images - Learn Ubuntu MATE
Gimp and XnViewMP are two programs in Linux that allow you to view .heic files. They also allow you to to convert .heic files to other formats by exporting them to a different format such as .png or .jpg files.
🌐
Baeldung
baeldung.com › home › files › file viewing › how to view .heic photos on linux
How to View .HEIC Photos on Linux | Baeldung on Linux
April 24, 2024 - It allows us to open a HEIC image into a browser and then right-click to save it as a JPEG at the original resolution. Sadly, it’s possible to do this only one photo at a time. The package libheif-examples provides heif-convert, which converts HEIC/HEIF images to different image formats: ... As test files, we have IMG_8123.HEIC, IMG_8227.HEIC and IMG_8273.HEIC.
🌐
Super User
superuser.com › questions › 1519650 › how-can-i-convert-a-heic-file-to-a-jpeg-file-in-debian
linux - How can I convert a HEIC file to a JPEG file, in Debian? - Super User
This question appears to address this https://askubuntu.com/questions/958355/any-app-on-ubuntu-to-open-and-or-convert-heif-pictures-heic-high-efficiency-i · However, on Debian, adding the required repository fails: # add-apt-repository ppa:strukturag/libheif This PPA contains packages to add support for HEIC / HEIF files. HEIF is a new image file format employing HEVC (h.265) image coding for the best compression ratios currently possible. libheif is an ISO/IEC 23008-12:2017 HEIF file format decoder (encoder to come).
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › software & applications
Opening .HEIC files - Linux Mint Forums
I missed that you were using LM 19.3 - the issue is the version of Imagemagick in the repositories does not support .HEIC files. But all is not lost. The current version of Converseen is available as an Appimage, and it has all of the necessary dependencies to convert .HEIC files into something usable.
Find elsewhere
Top answer
1 of 2
14

HEIC is the file format name Apple has chosen for the new HEIF (High Efficiency Image Format) Standard. Using advanced and modern compression methods, it allows photos to be created in smaller file sizes while retaining a higher image quality compared to JPEG/JPG.

Every iOS update comes with a host of changes, but some are not immediately obvious. ... HEIC will be used by default on new photos on iOS 11, and it's designed to save you storage space. As it's a new container format, there will be some incompatibilities along the way, and Apple does a good job at handling most of these.

To view these .HEIC images on Ubuntu, do this...

sudo apt update
sudo apt install heif-gdk-pixbuf
sudo apt install heif-thumbnailer
sudo apt install libheif1:amd64

Then save one of the .HEIC images to your ~/Pictures folder, right-click on the image icon, select Properties, and set the default application to Open With as Image Viewer.

Now a double-click on the image icon will open the file in Image Viewer for viewing.

Image thumbnails will also be seen in Files (Nautilus) windows.

In Thunderbird you can now also view these images in the original email attachment bar.

2 of 2
0

I found that Converseen version 0.9.9.0 was able to convert an HEIC file downloaded from iphone to jpeg easily without any modification. It worked on Debian 11 Bullseye and assume that it should work on the current Ubuntu version. You may install it from repo using sudo apt install converseen

I hope it helps.

🌐
Blogger
fritzthecat-blog.blogspot.com › 2019 › 07 › view-heic-photos-on-linux.html
My Software-Developer Blog: View .HEIC Photos on LINUX
If you want to view such photos on LINUX, you may encounter that it is not yet supported by the native Nautilus file manager (I used Ubuntu 18.04). Of course there is a workaround for this. I found fitzcarraldoblog and followed his advices. Here is a short summary of what I did to view HEIC images, and convert them to JPEG. Download and install the package libheif-examples by opening an input terminal window and typing
🌐
Reddit
reddit.com › r/linuxquestions › heif (.heic) viewer in linux
r/linuxquestions on Reddit: HEIF (.heic) viewer in Linux
October 5, 2018 -

I have a backup of all the photos from my iPhone. It turns out it uses HEIF format to store the small videos together with the actual photo.

How do you view HEIF files in Linux? I managed to open them with Gimp but it doesn't play the small video and it wouldn't be a great solution to just browse my photos anyway. I tested with Okular, Gwenview, Xnview and Lximage and none of them likes this format.

Do you have any other suggestions? Is there something I'm missing? Do I need to install some optional dependency library?

Thanks in advance!

Solution (kind of):

So first of all I was completely wrong about HEIC and Live mode videos. The small videos that are taken in Live mode are not embedded in the HEIC file, but saved in MOV format with the same name as the photo (minus the extension). Only burst photos are embedded in a single HEIC file.

The program digikam is able to show you the photos and create thumbnails. Also basic operations are no problem. That is enough for me but I think switching to JPEG seems to be the smarter move on the long run.

I've been a little stubborn about using HEIC but I don't think it offers any real benefit that justifies the hassle. I actually still use it (for pure laziness) but as already stated you should change the settings and convert the HEIC files. I use libheif-converter instead of the often suggested tifig because the latter seems to be a dead project.

https://github.com/strukturag/libheif

Also an important information to access all the files including the videos to be able to backup everything including videos. I am using following instructions:

sudo apt install ifuse libimobiledevice-utils
idevicepair pair
mkdir ~/iPhone
ifuse ~/iPhone
cd ~/iPhone
[...]
cd ~
fusermount -u ~/iPhone

Under ~/iPhone/DCIM/10XAPPLE folders you'll see all HEIC and MOV files.

🌐
YouTube
youtube.com › watch
How To Open HEIC Images on a Linux System - YouTube
In this video, I explain how you can view .heic images on a Linux system. I am using Ubuntu MATE 22.04 LTS, but it should work with other distros. How-To Ope...
Published   June 19, 2022
Views   6K
🌐
TheLinuxCode
thelinuxcode.com › home › what is the heic file? an in-depth guide for linux users
What is the HEIC File? An In-Depth Guide for Linux Users – TheLinuxCode
November 12, 2023 - This lightweight viewer should allow smooth viewing of the converted HEIC files. On Ubuntu-based distros that use the Nautilus file manager, we can leverage ImageMagick‘s libheif-examples package and the included heif-convert tool: ... Here we use eog to open the converted image in the Nautilus image viewer.
🌐
askmeaboutlinux
askmeaboutlinux.com › 2024 › 03 › 24 › how-to-view-heic-format-files-in-linux-mint-or-debian-linux
How to view heic format files in Linux Mint or Debian Linux – askmeaboutlinux
September 30, 2024 - To view heic or heif format files in Debian Linux open a terminal window and enter below command:$ sudo apt-get install heif-gdk-pixbuf Now the default image viewer (ristretto, etc) will automatically be able to open these files.
🌐
GitHub
gist.github.com › Ali-Raza-Arain › c05e5ce06b64c6da32eb00f3ec1a77d5
Official Packages to View HEIC Images on Linux · GitHub
You can now double-click HEIF files to view them. ... The Image Viewer application may be called something different on your system. If you don't have an Image Viewer application installed, you can install one from your distribution's software ...
🌐
Medium
hritikchaudhary.medium.com › heif-heic-support-for-linux-ubuntu-quick-guide-9a70f4d29352
HEIF(.HEIC) Image Support for Linux/Ubuntu [quick guide] - Hritik Chaudhary - Medium
March 21, 2024 - The process is very simple, single command line execution. This is achieved using a package called heif-gdk-pixbuf. It’s is available in ubuntu repositories and you don’t need to add any third party repository.
🌐
LinuxShout
linux.how2shout.com › home › 3 ways open and view .heic image files on linux mint
3 Ways open and view .Heic image files on Linux mint - LinuxShout
January 24, 2023 - Once you have installed the package, we are required to view .heif on Linux, close the file manager, and reopen it. Browse to the folder where your HEIF or HEIC Image files are located.
🌐
Fitzcarraldo's Blog
fitzcarraldoblog.wordpress.com › 2019 › 01 › 15 › heic-image-files-in-linux
HEIC image files in Linux | Fitzcarraldo's Blog
January 15, 2019 - So there you have it; if the Linux file manager and/or image viewing applications you use cannot already handle HEIC files, the tools in Linux that I found may work are as follows: heif-convert (from the package libheif-examples in Ubuntu/Lubuntu, or from from the package libheif in Gentoo). Imagemagick (not every version). The GIMP (not every version). the online tool ‘libheif decoder demo’ (https://strukturag.github.io/libheif/). I have not tried the copyright open-source code from Nokia (see link under Further Reading below), qt-heif-image-plugin and tifig (not in active development).