Bug 462286

Summary: HEIF image loading broken with kimageformats 5.100.0
Product: [Applications] digikam Reporter: kdebugs
Component: Plugin-DImg-HEIFAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin
Priority: NOR    
Version First Reported In: 7.8.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 7.9.0
Sentry Crash Report:

Description kdebugs 2022-11-26 20:07:07 UTC
SUMMARY
Since upgraded to kimageformats 5.100.0 Digikam no longer shows HEIF files.


STEPS TO REPRODUCE
1. Install kimageformats 5.100.0
2. Start Digikam

OBSERVED RESULT
New heif image thumbnails are no longer generated and larger previews are no longer showing.

digikam.dimg.heif: Error while processing HEIF image: Unsupported feature: Unsupported codec
digikam.dimg: "something.heic" : Cannot load file !!!
digikam.general: mimetype =  "HEIF"  ext =  "HEIC"
digikam.general: Cannot create thumbnail for "something.heic"
digikam.general: Thumbnail is null for  "something.heic"

EXPECTED RESULT


SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.26.3
KDE Frameworks Version:  5.100
Qt Version:  5.15.7

ADDITIONAL INFORMATION
Downgrading to kimageformats 5.99 makes it possible to load HEIF files within Digikam again.

Change possibly related to the issue:
https://github.com/KDE/kimageformats/commit/9ab64dbf223411098c21ec192f5181510db54ba1
Comment 1 Maik Qualmann 2022-11-26 20:22:47 UTC
The problem is fixed in digiKam-7.9.0. With libheif-1.13 a heif_init() and heif_deinit() is required in all applications that use libheif. digiKam does not use the kimageformats plugins to load heif images.

Maik
Comment 2 Maik Qualmann 2022-11-26 20:44:12 UTC
If you want to patch digiKam-7.8.0, this would be the patch:

https://invent.kde.org/graphics/digikam/-/commit/31df013ab9f8e7275f1eed2785e6dad5abad871a

Maik
Comment 3 kdebugs 2022-11-27 12:45:49 UTC
(In reply to Maik Qualmann from comment #2)
> If you want to patch digiKam-7.8.0, this would be the patch:
> 
> https://invent.kde.org/graphics/digikam/-/commit/
> 31df013ab9f8e7275f1eed2785e6dad5abad871a
> 
> Maik

 I couldn't get it to compile with that. But compiling qt5-maintenance branch works. Thanks for this fantastic application!