Created attachment 162972 [details] full log and XCF file example Digikam git doesn't display layers in XCF files, even in thumbnails See full log and XCF file example in attachment SOFTWARE/OS VERSIONS Arch Linux QT5 5.15.11 Kimageformats 5.111
Created attachment 162973 [details] debug log
You already know from Bug 466821 that the XCF image loader is part of the KImageFormats-Plugins. Maik
You can see from this error message that it is currently not implemented: kf.imageformats.plugins.xcf: Unhandled mode XCFImageFormat::GIMP_LAYER_MODE_NORMAL Maik
I discover now PcmanFm-Qt and PcManFM gtk3 can display multilayers XCF thumbnails, i'm wondering how it works. https://archlinux.org/packages/?q=pcmanfm
As far as I know, Gimp creates a thumbnail in the thumbnail cache when you save an image. This is displayed by file managers. Maik
(In reply to Maik Qualmann from comment #5) > As far as I know, Gimp creates a thumbnail in the thumbnail cache when you > save an image. This is displayed by file managers. > > Maik I tested XCF multilayers thumbnails display with other file managers: Dolphin 23.08.3 doesn't do it at all Nautilus 45.1, Thunar 4.18.8, PCmanfm-QT 1.4.0 display these thumbnails...during one second, then strangely, thumbnail disappear... Only PCmanfm 1.3.2 (Gtk3) can display XCF multilayers thumbnails normally
Issues with XCF layers files is old story. This one was reported more seven years ago https://bugs.kde.org/show_bug.cgi?id=360806 Same time, it was reported to ImageMagick team too https://github.com/ImageMagick/ImageMagick/issues/1544 Dev comment: "Its not a bug. ImageMagick does not support Gimp 2.10 .XCF images. We may support the format in the future but currently we do not have an ETA on when support will be added." I'm wondering if other soft than IM, Kimageformats or Graphicsmagick, exist to display XCF files with layers or/and 16 bits XCF files.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kimageformats/-/merge_requests/226
(In reply to maderios from comment #0) > Created attachment 162972 [details] @maderios are you the author of the image? If yes, can we include it in kimageformat repository as test case?
(In reply to Mirco Miranda from comment #9) > (In reply to maderios from comment #0) > > Created attachment 162972 [details] > > @maderios are you the author of the image? If yes, can we include it in > kimageformat repository as test case? Yes, I'm the author of these images (Creative Common license), you can include them in kimageformat repository as test case.
Created attachment 170272 [details] Added copyright info to XCF I added the copyright info you wrote to the XCF and I will include in the KImageFormat repo for the regression tests.
Git commit bd083ff3544e6d4ed8bb1f8c0cac4d9030259088 by Albert Astals Cid, on behalf of Mirco Miranda. Committed on 10/06/2024 at 20:16. Pushed by aacid into branch 'master'. XCF: fixed wrong composite on Grayscale images A +- -- autotests/read/xcf/bug_476755_gray_layers.png A +- -- autotests/read/xcf/bug_476755_gray_layers.xcf A +- -- autotests/read/xcf/bug_476755_rgb_layers.png A +- -- autotests/read/xcf/bug_476755_rgb_layers.xcf M +10 -7 src/imageformats/xcf.cpp https://invent.kde.org/frameworks/kimageformats/-/commit/bd083ff3544e6d4ed8bb1f8c0cac4d9030259088
KimageFormats git version works for me now with 16 bit XCF files, multilayers or not. Bug seems solved. Qt 6.7.1 KF6 6.3.0