Bug 496474

Summary: digiKam 8.5 under macOS (Apple Silicon) - problem displaying HEIC of iPhone 16 pro
Product: [Applications] digikam Reporter: Manuel Bock <Manuel.Bock>
Component: Plugin-DImg-HEIFAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, Manuel.Bock, metzpinguin
Priority: NOR    
Version: 8.5.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In: 8.6.0
Sentry Crash Report:
Attachments: original photo (.HEIC)
screenshot with macOS preview and digicam

Description Manuel Bock 2024-11-19 20:26:01 UTC
Please find enclosed two attachments (original photo and a  screenshot showing digiKams preview right and Apple preview left). As you can see, macOS preview is showing the correct photo, whereas digiKam preview seems to clip high tone contrasts. Surprisingly the icon preview is not showing that wired color tones.
Comment 1 Manuel Bock 2024-11-19 20:29:36 UTC
Created attachment 175959 [details]
original photo (.HEIC)

original HEIC from iPhone 16 pro
Comment 2 Manuel Bock 2024-11-19 20:40:20 UTC
Created attachment 175960 [details]
screenshot with macOS preview and digicam
Comment 3 Maik Qualmann 2024-11-19 21:06:35 UTC
The image is displayed correctly here on my Linux developer version. I am using libheif-1.19.3.
So the problem should be fixed if we update the libheif in the bundles.

Maik
Comment 4 Maik Qualmann 2024-11-19 21:11:20 UTC
It could be something macOS specific, because with the Linux AppImage and libheif-1.18.2 the image is displayed correctly.

Maik
Comment 5 Maik Qualmann 2024-11-19 21:23:05 UTC
The cause is the color profile. I can reproduce the problem. The color profile is unknown to our libheif loader. Now we have added color profile support with digiKam-8.5.0 and ExifTool. ExifTool can create an image color profile in the metadata that we can then use.
So you have to activate reading metadata with ExifTool in the digiKam settings under Metadata. Then the image will load correctly.

Maik
Comment 6 Manuel Bock 2024-11-19 21:47:07 UTC
Hi Maik,

activating exiftool for reading the metadata and refreshing the album solved the issue.

Many thanks.
Manuel


> Am 19.11.2024 um 21:23 schrieb Maik Qualmann <bugzilla_noreply@kde.org>:
> 
> https://bugs.kde.org/show_bug.cgi?id=496474
> 
> --- Comment #5 from Maik Qualmann <metzpinguin@gmail.com> ---
> The cause is the color profile. I can reproduce the problem. The color profile
> is unknown to our libheif loader. Now we have added color profile support with
> digiKam-8.5.0 and ExifTool. ExifTool can create an image color profile in the
> metadata that we can then use.
> So you have to activate reading metadata with ExifTool in the digiKam settings
> under Metadata. Then the image will load correctly.
> 
> Maik
> 
> -- 
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.
Comment 7 Maik Qualmann 2024-11-20 06:38:24 UTC
Git commit 537684b45c4000cdbf3ed8ac327713c40410f766 by Maik Qualmann.
Committed on 20/11/2024 at 06:37.
Pushed by mqualmann into branch 'master'.

not load image ICC profile with Exiv2

M  +0    -12   core/libs/metadataengine/engine/metaengine_fileio.cpp

https://invent.kde.org/graphics/digikam/-/commit/537684b45c4000cdbf3ed8ac327713c40410f766