Bug 423637

Summary: Krita & digikam
Product: [Applications] krita Reporter: ebm2003rkm
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: caulier.gilles, danni.coy, halla, maxim.sheronov
Priority: NOR    
Version: 4.3.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:

Description ebm2003rkm 2020-06-29 02:49:49 UTC
On digikam 7.0.0-rc, is not possible to see the thumbnail and also the image from Krita 2.3.0 (.kra), but if the same file is saved with Krita 2.2.9, everything its ok.


STEPS TO REPRODUCE
1. Add some file saved with Krita 2.3.0 on digikam
2. No thumbnail and image visualization
3. Add the same file as before but saved with Krita 2.2.9
4. Everything should be ok with it

OBSERVED RESULT


EXPECTED RESULT


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

ADDITIONAL INFORMATION
Comment 1 Halla Rempt 2020-06-29 11:54:45 UTC
The file format hasn't changed, though since 4.2.8 or 4.2.9 we use quazip instead of karchive to save .kra files. But in any case, when checking a large number .kra files, it didn't make much difference which version of Krita a file was created with; sometimes kimageformats could load the file, sometimes it couldn't.

I suspect that Digikam uses frameworks-kimageformats to open the files, just like gwenview does.
Comment 2 caulier.gilles 2020-07-15 07:26:29 UTC
Hi Boudewijn,

yes, digiKam can use KImageFormat Qt::Image plugins to load/preview/thumbnails of extra file formats. It's the case of KRA and ORA images.

See the older report about this topic:

https://bugs.kde.org/show_bug.cgi?id=301543

The Q is: How KImageFormat work with .KRA files ? Did it use a dedicated loader shared with Calligra & co ? As i can seen, there is no KRA loader code in KImageFormat...

Best

Gilles Caulier
Comment 3 Christoph Feck 2020-07-15 08:36:23 UTC
See also bug 423547.
Comment 4 Halla Rempt 2020-07-15 09:01:42 UTC
There is a kra loader in kimageformats: https://invent.kde.org/frameworks/kimageformats/-/blob/master/src/imageformats/kra.cpp (and an ora loader). The way it works is, it takes the mergedimage.png file from the zip file (a kra file is a zip file).
Comment 5 Halla Rempt 2020-07-15 09:03:43 UTC
*** Bug 423547 has been marked as a duplicate of this bug. ***
Comment 6 Halla Rempt 2020-07-15 09:04:25 UTC
Note that we changed our zip library from kzip to quazip, which is likely the reason for the problem. kzip cannot handle 64 bit zip files.
Comment 7 Halla Rempt 2020-07-15 09:04:48 UTC
*** Bug 301543 has been marked as a duplicate of this bug. ***
Comment 8 Halla Rempt 2021-02-13 13:52:18 UTC

*** This bug has been marked as a duplicate of bug 362999 ***