How can I view .HEIC photos on Linux?
Solution 1
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
Solution 2
On Ubuntu (Debian distro) the easiest way is probably to run:
sudo apt install heif-gdk-pixbuf
For Fedora and other RPM-based distros use:
sudo dnf install libheif
After this, e.g. Eye of Gnome eog image.heic
will display your image.
Solution 3
to convert a heic image to be able to view it as usual,
sudo apt-get install libheif-examples
then convert image to jpg:
heif-convert input.heic output.jpg
then view the image using any image viewer - here's an example:
ristretto output.jpg
Solution 4
For the record, ImageMagick supports it. Somehow magick display image.heic
gave me weird results, but converting was fine:
magick convert image.heic image.jpg
Solution 5
.heic
may be the file name extension, but the format is more commonly known as HEIF, the High Efficiency Image File format. There’s an open source implementation from Nokia here: http://nokiatech.github.io/heif/
Related videos on Youtube
![Ivan Kozik](https://i.stack.imgur.com/BJH2m.png?s=256&g=1)
Ivan Kozik
I do not claim any copyright over the code samples (including code comments) I post to Stack Exchange sites. See https://creativecommons.org/publicdomain/zero/1.0/ . You don't even need to attribute the work.
Updated on September 18, 2022Comments
-
Ivan Kozik almost 2 years
How can I view .HEIC photos (the new default format on iOS 11) on a Linux desktop, without uploading them to some cloud service? Is there an image viewer, image converter, or browser with support for .HEIC, either released or not-yet-released?
-
G-Man Says 'Reinstate Monica' over 6 yearsJunior, the question explicitly says “without uploading them to some cloud service”.
-
Marco Massenzio almost 6 yearsnot to mention, that it does not really work: I'm here exactly because my Dropbox files (uploaded from an iPhone) show up as
.heic
files on my Ubuntu desktop, and I cannot open them -
Elliptical view about 4 yearsOn Debian 10.3 I have to use
convert-im6.q16
rather thanmagick
. (From 'imagemagick' package v 8:6.9.10.23+..). (Also GIMP opens them, but it's more awkward and much more slow.) Thanks! -
Camille Goudeseune over 3 yearsYes, 0.2.0 runs on Ubuntu 18. github.com/monostream/tifig/releases/download/0.2.0/…
-
jchook over 3 yearsApparently ffmpeg does not yet support HEIF?
-
gargoylebident over 3 yearsJust took a photo on an iPhone and ran the .heic file through ffmpeg with the above command. Converted to png without any problems. Not sure why the people in that post are having issues.
-
onetwopunch about 3 yearsv0.2.2 works great as a static download on Ubuntu 20.04 as wel
-
Walf about 3 yearsAt the time of writing, this no longer works with photos from newer iOS versions. You will get the error message: "Grid configuration not found! tifig currently only supports .heic images created on iOS 11 devices."
-
toraritte almost 3 years
for img in *{heic,HEIC}; do convert "${img}"{,.jpg}; done
(Not sure how portable it is though, and it does just append the JPEG extension at the end - although I like converting like that as it gives a sense of "format history".) -
Elliptical view almost 3 yearsNot working for me. I'm seeing: $ ffmpeg -i IMG_9256.heic IMG_9256.png ffmpeg version 4.1.6-1~deb10u1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --prefix=/usr --extra-version='1~deb10u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdi
-
Elliptical view almost 3 yearso --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq
-
Elliptical view almost 3 years--enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 22.100 / 56. 22.100 libavcodec 58. 35.100 / 58. 35.100 libavformat 58. 20.100 / 58. 20.100 libavdevice 58. 5.100 / 58. 5.100 libavfilter 7. 40.101 / 7. 40.101 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 3.100 / 5. 3.100 libswresample 3. 3.100 / 3. 3.100 libpostproc 55. 3.100 / 55. 3.100
-
Elliptical view almost 3 years[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55a711614740] moov atom not found IMG_9256.heic: Invalid data found when processing input
-
Elliptical view almost 3 yearsThe heif-convert step worked. Not sure what 'ristretto' is?
-
Darren Ng almost 3 years@Ellipticalview Ristretto Image Viewer
-
Franva over 2 yearsThis is the better and less setup required. After installed "heif-gdk-pixbuf" you can open the heic files directly, if not, just right click the heic file and "Open in Another Application" --> Image Viewer
-
Nick S over 2 yearsYeah this is newer but now clearly the correct answer.
-
Community over 2 yearsYour answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
-
Francesco Potortì over 2 yearsAny image viewer wold work: mentioning a specific one as part of the solution workflow the way you did is out of the scope of the question, so it looks like an advertisement...
-
jmarina over 2 years@FrancescoPotortì the answer is now updated to explicitly state that any image viewer would work; I used ristretto as an example because it was already installed
-
fracz over 2 yearsFor all files in directory:
for i in *.HEIC; do heif-convert "$i" "$i.jpg"; done
-
Ondra Žižka over 2 yearsI woud refrain from installing archives from an unknown GitHub repo - can contain anything.
-
Sridhar Sarnobat over 2 yearsDoesn't work for me on Ubuntu 20. I just get a white panel.
-
qneill about 2 yearsLike @fracz but without the "file.HEIC.jpg" double extension:
for i in *.HEIC; do heif-convert "$i" "${i%.HEIC}.jpg"; done