Bug 2189462

Summary: GIMP file-heif plugin fails to load HEVC-encoded HEIF image with libheif-1.15.x when libde265 decoder is built as plugin
Product: [Fedora] Fedora Reporter: Dominik 'Rathann' Mierzejewski <dominik>
Component: gimpAssignee: Nils Philippsen <nphilipp>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: enpontus, giun7a, jridky, nphilipp, phracek, zdohnal
Target Milestone: ---Flags: dominik: needinfo? (nphilipp)
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dominik 'Rathann' Mierzejewski 2023-04-25 11:00:23 UTC
The HEIF file input plugin in GIMP fails to recognize a HEVC-encoded HEIF image:

$ file image1.heic 
image1.heic: ISO Media, HEIF Image HEVC Main or Main Still Picture Profile
When trying to import this file in GIMP, I get an error dialog saying "Opening image1.heic failed: Unknown file type".
This happens with libheif-1.15.1 with the libde265 decoder compiled as plugin (/usr/lib64/libheif/libheif-libde265.so):

If I downgrade libheif to 1.13.0 (which has libde265 decoder built-in), opening the same image works.

Reproducible: Always

Steps to Reproduce:
1. Install gimp-2.10.34-1
2. Install libheif-freeworld-1.15.1-5
3. Try importing a HEVC-encoded HEIF image
Actual Results:  
Import fails with "Unknown file type".

Expected Results:  
Image is imported successfully.


I opened an upstream issue and the provided a patch:
https://gitlab.gnome.org/GNOME/gimp/-/issues/9395
https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/905

Comment 1 Dominik 'Rathann' Mierzejewski 2023-06-29 20:13:55 UTC
Still reproducible with latest build (gimp-2.10.34-5.fc39).
Could you backport that patch
(https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/905)
while we're waiting for 2.10.36 to be released?

Comment 2 Dominik 'Rathann' Mierzejewski 2023-08-07 10:05:13 UTC
It's been over a month. I will fix the issue myself if there's no response soon.

Comment 3 Fedora Release Engineering 2023-08-16 08:09:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.