Bug 1223160

Summary: Cannot open HEIC/HEIF images
Product: [openSUSE] openSUSE Tumbleweed Reporter: Pablo Aguado <aguadopd>
Component: KDE ApplicationsAssignee: E-Mail List <opensuse-kde-bugs>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Pablo Aguado 2024-04-19 22:20:12 UTC
Both Okular and Gwenview fail to open a `.HEIC` image. I checked if the image(s) are OK by opening or converting using some online services, and they work so I think the problem is mine.

```
pablo@thinkpad:~/Downloads> cat /etc/os-release 
NAME="openSUSE Tumbleweed"
# VERSION="20240412"

pablo@thinkpad:~/Downloads> file IMG_8317.HEIC 
IMG_8317.HEIC: ISO Media, HEIF Image HEVC Main or Main Still Picture Profile

pablo@thinkpad:~/Downloads> identify IMG_8317.HEIC 
IMG_8317.HEIC HEIC 3024x4032 3024x4032+0+0 8-bit sRGB 3.76043MiB 0.000u 0:00.001
```

If I open Okular and Gwenview from the terminal, I can see more informative error messages:

```
heif_decode_image error: Decoder plugin generated an error: Unspecified: avcodec_find_decoder(AV_CODEC_ID_HEVC) returned error```

This suggests I'm missing a codec. I then try to check if I can find some `heic` or `heif` related package. Somewhere else I see that `kimageformats` may fix the issue, so I search for it too:

```
pablo@thinkpad:~> sudo zypper se *heif* *heic* *kimageformats*
Refreshing service 'NVIDIA'.
Refreshing service 'openSUSE'.
Loading repository data...
Reading installed packages...

S  | Name                      | Summary                                                       | Type
---+---------------------------+---------------------------------------------------------------+--------
i+ | gdk-pixbuf-loader-libheif | GDK PixBuf Loader for libheif                                 | package
i+ | kf6-kimageformats         | Image format plugins for Qt                                   | package
   | kf6-kimageformats-eps     | EPS image format plugin for Qt                                | package
i+ | kimageformats             | Image format plugins for Qt                                   | package
   | kimageformats-eps         | EPS image format plugin for Qt                                | package
i+ | libheif-aom               | Plugin AOM encoder and decoder for AVIF                       | package
i+ | libheif-dav1d             | Plugin dav1d decoder for AVIF                                 | package
   | libheif-devel             | Devel Package for libheif                                     | package
i+ | libheif-ffmpeg            | Plugin FFMPEG decoder (HW acc) for HEIC                       | package
i+ | libheif-jpeg              | Plugin encoder and decoder for JPEG in HEIF                   | package
i+ | libheif-openjpeg          | Plugin OpenJPEG J2K encoder and decoder for JPEG-2000 in HEIF | package
i+ | libheif-rav1e             | Plugin rav1e encoder for AVIF                                 | package
i+ | libheif-svtenc            | Plugin SVT-AV1 encoder for AVIF                               | package
i+ | libheif1                  | HEIF/AVIF file format decoder and encoder                     | package
   | libheif1-32bit            | HEIF/AVIF file format decoder and encoder                     | package
```

So everything seems in order! Am I missing something?
Comment 1 Pablo Aguado 2024-04-19 22:24:14 UTC
Per https://bugzilla.opensuse.org/show_bug.cgi?id=1199987#c7 and https://bugzilla.opensuse.org/show_bug.cgi?id=1213371 I now see that there is no support for this format. I wonder if end-users could get to this conclusion in an easier way, but probably not.

Solution seems to install packages from another source (https://en.opensuse.org/Additional_package_repositories#Packman) (which packages?), will analyze that option.

Closing.
Comment 2 Pablo Aguado 2024-04-19 22:25:44 UTC
Duplicate of https://bugzilla.opensuse.org/show_bug.cgi?id=1213371
Duplicate of https://bugzilla.opensuse.org/show_bug.cgi?id=1199987

*** This bug has been marked as a duplicate of bug 1213371 ***