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: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 39CC: enpontus, giun7a, jridky, nphilipp, phracek, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: gimp-2.10.34-8.fc38 gimp-2.10.34-8.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-22 17:17:14 UTC 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.

Comment 4 Nils Philippsen 2023-08-20 21:58:00 UTC
Sorry for the late response. I'll apply the upstream patch and build updates.

Comment 5 Fedora Update System 2023-08-21 07:36:36 UTC
FEDORA-2023-f5eea8431d has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f5eea8431d

Comment 6 Fedora Update System 2023-08-21 07:36:36 UTC
FEDORA-2023-32088b9962 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-32088b9962

Comment 7 Fedora Update System 2023-08-22 01:14:31 UTC
FEDORA-2023-f5eea8431d has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-f5eea8431d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-f5eea8431d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2023-08-22 01:15:47 UTC
FEDORA-2023-32088b9962 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-32088b9962`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-32088b9962

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2023-08-22 17:17:14 UTC
FEDORA-2023-32088b9962 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2023-08-30 01:27:10 UTC
FEDORA-2023-f5eea8431d has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.