Bug 479096 - Gimp xcf 2.10.36 images no longer show a preview
Summary: Gimp xcf 2.10.36 images no longer show a preview
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-QImage (show other bugs)
Version: 8.2.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-27 20:01 UTC by Andrew Sayman
Modified: 2023-12-27 21:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.3.0


Attachments
Logs of xcf preview image failure (12.28 KB, text/plain)
2023-12-27 20:20 UTC, Andrew Sayman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Sayman 2023-12-27 20:01:17 UTC
SUMMARY
digiKam no longer shows a preview for xcf images. It now shows the green landscape icon for images that failed to preview. In 8.1.0 all of the XCF images I had correctly showed a preview of the image.


STEPS TO REPRODUCE
1. Create image using Gimp xcf 2.10.36
2. Refresh a digiKam album containing that image

OBSERVED RESULT
An icon indicating that there is no preview

EXPECTED RESULT
A preview of the image

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

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2023-12-27 20:11:25 UTC
I can't test the Windows version until tomorrow, but here under Linux no problem with a Gimp XCF image version 2.10.36. The Windows version of the KF6 ImageFormat plugins should be on the same level as my openSUSE.

Maik
Comment 2 Andrew Sayman 2023-12-27 20:20:04 UTC
Created attachment 164489 [details]
Logs of xcf preview image failure

I set up a new album with a simple XCF that is just a filled, white canvas with GIMP 2.10.36. These are the logs from DebugView when I clicked "preview" to try to show the image.
Comment 3 Maik Qualmann 2023-12-27 20:26:35 UTC
Can you email me an XCF image that won't load?

Maik
Comment 4 Maik Qualmann 2023-12-27 20:48:12 UTC
Thanks for the XCF image. This is strange, I can't open it with digiKam (Qt6) under Linux either, same error message from QImage Loader. So it's not a Windows specific problem. But I can open it here with Gwenview (Qt5), so there must be a bug in the KImageFormats plugins between Qt5->Qt6.

But why can I open my Gimp 2.10.36 XCF images?

Maik
Comment 5 Maik Qualmann 2023-12-27 21:32:59 UTC
Git commit 53ff2e16647563f9a8f6919a26bf8e1f06131ad2 by Maik Qualmann.
Committed on 27/12/2023 at 22:31.
Pushed by mqualmann into branch 'master'.

adjust QImageReader::setAllocationLimit() to 2GB in Qt6
In Qt6 there is an option to set the maximum memory allocation limit,
the default value is relatively small. We set it to 0; according to
the Qt-Doc, this should deactivate the memory check.
This doesn't seem to work with XCF.
FIXED-IN: 8.3.0

M  +1    -1    NEWS
M  +1    -1    core/app/main/main.cpp
M  +1    -1    core/showfoto/main/main.cpp

https://invent.kde.org/graphics/digikam/-/commit/53ff2e16647563f9a8f6919a26bf8e1f06131ad2
Comment 6 Maik Qualmann 2023-12-27 21:47:35 UTC
A new digiKam-8.3.0 test version that contains the change will be available here in the next few days:

https://files.kde.org/digikam/

Maik