Bug 2189462 - GIMP file-heif plugin fails to load HEVC-encoded HEIF image with libheif-1.15.x when libde265 decoder is built as plugin
Summary: GIMP file-heif plugin fails to load HEVC-encoded HEIF image with libheif-1.15...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gimp
Version: 39
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-25 11:00 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2023-08-30 01:27 UTC (History)
6 users (show)

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:
Clone Of:
Environment:
Last Closed: 2023-08-22 17:17:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME gimp issues 9395 0 None closed GIMP file-heif plugin fails to load HEVC-encoded HEIF image with libheif-1.15.x when libde265 decoder is built as plugin 2023-08-07 10:05:24 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.