Bug 463486 - Loading .HEIC images takes too long (approx 7 secs)
Summary: Loading .HEIC images takes too long (approx 7 secs)
Status: RESOLVED UPSTREAM
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-HEIF (show other bugs)
Version: 7.9.0
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-26 13:41 UTC by dajomu
Modified: 2023-08-14 10:32 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.1.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dajomu 2022-12-26 13:41:19 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Images on NAS
2. Open image from thumbnail
3. 

OBSERVED RESULT
Loading of HEIC-images takes very long time

EXPECTED RESULT
I expect it to open close to instant. Video files .MOV opens instantly for playback.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2022-12-26 13:54:50 UTC
Which operating system did you use ?

Note : HEIF decoding is delegate to libheif (https://github.com/strukturag/libheif)

Can you share a sample file to test here ?

Gilles Caulier
Comment 2 Maik Qualmann 2022-12-29 08:24:12 UTC
Well, if you look into libheif's bug reports and search for "slow", you'll find it. The loading time of digiKam does not differ from the implementations of other projects using libheif. We don't currently have an alternative to libheif on Linux.

Maik
Comment 3 dajomu 2023-01-04 12:24:28 UTC
I was using windows 10, but tried on Linux and found it to be faster. Does DK use multi-thread or single-thread on windows?
Comment 4 caulier.gilles 2023-01-04 12:31:52 UTC
DK use multi-thread everywhere. For HEIF loading, it use a separated thread to load image data (so to run the codec)

Is the libheif/libde265 codec optimized under Windows ? Codec must use multi-thread to parallelize computations. Perhaps it's not the case under Windows.

Again I suspect this problem located in libheif/libde265, not digiKam code.

Gilles
Comment 5 fuerallesg 2023-01-04 12:33:18 UTC
In my win 11 installation 12MP HEIC images take up to 15s. I do not believe that this is better than on the Linux systems
Comment 6 caulier.gilles 2023-05-02 17:17:16 UTC
@dajomu

UPSTREAM bugs from libheif:

https://github.com/strukturag/libheif/issues/645
https://github.com/strukturag/libheif/issues/552
https://github.com/strukturag/libheif/issues/472
https://github.com/strukturag/libheif/issues/133

Select right one and continue this discussion on github bugzilla from libheif. Nothing can be done in digiKam code to improve the performances.

Gilles Caulier
Comment 7 caulier.gilles 2023-05-03 12:30:47 UTC
*** Bug 441648 has been marked as a duplicate of this bug. ***
Comment 8 Maik Qualmann 2023-08-14 10:32:47 UTC
*** Bug 473356 has been marked as a duplicate of this bug. ***