{"id":51462,"date":"2026-06-24T14:13:16","date_gmt":"2026-06-24T14:13:16","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=51462"},"modified":"2026-06-24T14:13:16","modified_gmt":"2026-06-24T14:13:16","slug":"enable-heif-heic-photo-image-support-in-ubuntu-26-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2026\/06\/enable-heif-heic-photo-image-support-in-ubuntu-26-04\/","title":{"rendered":"Enable HEIF\/HEIC Photo Image Support in Ubuntu 26.04"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-45727\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/loupe-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/loupe-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/loupe-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/loupe-icon-700x700.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/loupe-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/loupe-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<p>Found the image viewers and editors, such as Loupe and GIMP, cannot load HEIF\/HEIC images by default in Ubuntu 26.04? Here&#8217;s a quick guide show you why and how to fix.<\/p>\n<p>Today I found that the default Loupe image viewer in Ubuntu 26.04 could not load my photo images imported from iPhone.<\/p>\n<p>It said &#8220;<i>Either the image file is corrupted or it contains unsupported elements<\/i>&#8220;, and the more information page showed the error below:<\/p>\n<p><!--more--><\/p>\n<blockquote><p><i>emote error: org.gnome.glycin.Error.LoadingError: glycin-loaders\/glycin-heif\/src\/main.rs:103:24: DecoderPluginError(Unspecified) Decoder plugin generated an error: Unspecified<\/i><\/p>\n<p>stderr:<br \/>\nSetting process memory limit<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51463\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/heic-notload-700x486.webp\" alt=\"\" width=\"610\" height=\"424\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/heic-notload-700x486.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/heic-notload-300x208.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/heic-notload-768x533.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/heic-notload.webp 1036w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<h3>Why HEIF\/HEIC does not load in Ubuntu 26.04?<\/h3>\n<p>Someone has reported <a href=\"https:\/\/gitlab.gnome.org\/GNOME\/glycin\/-\/work_items\/289\" target=\"_blank\" rel=\"noopener\">the issue<\/a> to glycin project, the GNOME backend library for loading images. It has nothing to do with that library, but caused by missing of the libheif plugin.<\/p>\n<p>According to the <a href=\"https:\/\/gitlab.gnome.org\/GNOME\/glycin\" target=\"_blank\" rel=\"noopener\">glycin source page<\/a>, it uses the external <code>libheif<\/code> library for decoding AVIF and HEIF images. And, <a href=\"https:\/\/github.com\/strukturag\/libheif#supported-features\" target=\"_blank\" rel=\"noopener\">libheif<\/a> has the HEIF\/HEIC decoding support through either <code>libde265<\/code> or <code>ffmpegdec<\/code> plugin.<\/p>\n<div id=\"attachment_51464\" style=\"width: 620px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-51464\" class=\"size-large wp-image-51464\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/glycin-libheifsupport-700x375.webp\" alt=\"\" width=\"610\" height=\"327\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/glycin-libheifsupport-700x375.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/glycin-libheifsupport-300x161.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/glycin-libheifsupport-768x412.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/glycin-libheifsupport.webp 1104w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><p id=\"caption-attachment-51464\" class=\"wp-caption-text\">HEIC\/HEIF support is handled by libheif&#8217;s libde265 or ffmpegdec plugin<\/p><\/div>\n<p>By running the command below in terminal, you&#8217;ll find that the glycin library in Ubuntu 26.04 was however built with <code>libheif1<\/code> and only a few of its encoder plugins as dependencies.<\/p>\n<pre>apt-cache depends glycin-loaders<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51465\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/glycin-loadersdeps-700x537.webp\" alt=\"\" width=\"610\" height=\"468\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/glycin-loadersdeps-700x537.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/glycin-loadersdeps-300x230.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/glycin-loadersdeps.webp 702w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>And, <code>libheif1<\/code> package only depends on <code>aomdec<\/code> and <code>dav1d<\/code> plugins, recommends <code>aomenc<\/code> plugins, while all other plugins are marked as &#8220;Suggests&#8221; packages that are NOT required to be installed during the installation of <code>libheif1<\/code>.<\/p>\n<pre>apt-cache depends libheif1<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51466\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/libheif1-deps-700x537.webp\" alt=\"\" width=\"610\" height=\"468\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/libheif1-deps-700x537.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/libheif1-deps-300x230.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/libheif1-deps.webp 702w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p><b>In short, the core image loading library supports HEIF\/HEIC decoding, but through the <code>libheif<\/code> library. The <code>libheif<\/code> in Ubuntu 26.04 has the HEIC decoder built as separated plugin, but NOT installed out-of-the-box.<\/b><\/p>\n<h3>Enable HEIF\/HEIC Support<\/h3>\n<p>So, the solution is simply install the missing plugin, either <code>libde265<\/code> or <code>ffmpegdec<\/code>, for the libheif library.<\/p>\n<p>To do so, press <code>Ctrl+Alt+T<\/code> on keyboard to open terminal window, and run the command below to install the package:<\/p>\n<pre>sudo apt install libheif-plugin-ffmpegdec<\/pre>\n<p>Refresh cache with <code>sudo apt update<\/code> if required. And, here you may replace <code>libheif-plugin-ffmpegdec<\/code> with <code>libheif-plugin-libde265<\/code> plugin for same purpose.<\/p>\n<p>Also, install the <code>libheif-plugins-all<\/code> package for all <code>libheif<\/code> plugins, if you have apps that reply on the library for encoding HEIC or encoding\/decoding VVC, AVC, HTJ2K and other supported file formats.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-51467\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/apt-libheifdecoder-700x537.webp\" alt=\"\" width=\"610\" height=\"468\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/apt-libheifdecoder-700x537.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/apt-libheifdecoder-300x230.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/apt-libheifdecoder.webp 702w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<h3>Reload Thumbnails<\/h3>\n<p>If you found the image thumbnails do not work for HEIF\/HEIC in file manager, then try running the command below to clear cache:<\/p>\n<pre>rm -rf ~\/.cache\/thumbnails<\/pre>\n<p>Finally quite Nautilus (the file manager) via command <code>nautilus -q<\/code> which worked in my case.<\/p>\n<div id=\"attachment_51468\" style=\"width: 620px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-51468\" class=\"size-large wp-image-51468\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/heic2604-700x412.webp\" alt=\"\" width=\"610\" height=\"359\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/heic2604-700x412.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/heic2604-300x176.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/heic2604-768x452.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2026\/06\/heic2604.webp 1364w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><p id=\"caption-attachment-51468\" class=\"wp-caption-text\">HEIC image and thumbnails load afterwards<\/p><\/div>","protected":false},"excerpt":{"rendered":"<p>Found the image viewers and editors, such as Loupe and GIMP, cannot load HEIF\/HEIC images by default in Ubuntu 26.04? Here&#8217;s a quick guide show you why and how to fix. Today I found that the default Loupe image viewer in Ubuntu 26.04 could not load my photo images imported from iPhone. It said &#8220;Either [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":45727,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1154],"class_list":["post-51462","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-multimedia"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/51462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=51462"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/51462\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/45727"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=51462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=51462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=51462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}