Converting heic file fails

Works here also

For me the key is libheif-HEIFfrom Packman; removing that single package makes every graphics app to error out, including GIMP even when gimp-plugin-heif from Packman is installed (an encoder rather than a decoder?)

Interesting, but there should be something else going on, possibly a HW decoder enabled on your HW by a recent Mesa, Vulkan or something? The glycin-loaders package does not avoid the errors here.

The thumbnails are actually .jpeg images, so no surprise about that, see the actual link to one of those: https://heic.digital/img/samples/mini-shelf-christmas-decoration.jpg

My hardware is so old it doesn’t support hevc decoding, I really do not know why it works, I even have it working in a tumbleweed vm, that was actually where I discovered that it works without packman, the vm has never seen a packman package but both use the vlc repo.
It was a pleasant surprise.

Mystery solved: ffmpeg-8 (and associated libav*) from both Packman and VLC apparently include an HEIF decoder, so apparently if you have one or the other you don’t need libheif-HEIF from Packman.

Either way, if you have a pure OSS install you cannot decode, display, convert .heic files.

1 Like

Basically an .heic file contains images with HEVC encoding (aka ITU-T H.265) so any ffmpeg with H265 decoders can decode such images.
The OSS version of ffmpeg has H.265 disabled due to patent issues.

The Packman libheif-HEIF might decode an even wider range of images since .heic files are a default special case of HEIF container and encoding.

Please see Wikipedia if you are interested in the details.

2 Likes

Bruno, on this Tumbleweed system, installing “libheif-HEIF” (in the Packman essential repository) replaced the following openSUSE:repo-oss packages with packages from Packman essentials –

  • libheif1, gdk-pixbuf-loader-libheif, libheif-svtenc, libheif-openh264, libheif-aom, libheif-rav1e, libheif-ffmpeg, libheif-jpeg, libheif-openjpeg, libheif-dav1d.

Gwenview, Okular, showFoto and GIMP now open the HEIC images I mentioned above perfectly and, also the HEIC sample gallery files. :grin:

  • Krita doesn’t – for whatever reason – I’ll investigate later – it may well be that Krita is still KDE Plasma 5 – they have announced that, they’re moving to KDE Plasma 6 but, they aren’t there yet …

Bruno, many, many thanks for the hint. :+1:

1 Like