Bug 476755 - Digikam git doesn't display layers in XCF files
Summary: Digikam git doesn't display layers in XCF files
Status: REPORTED
Alias: None
Product: frameworks-kimageformats
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.245.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Alex Merry
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-09 14:33 UTC by maderios
Modified: 2023-11-18 21:10 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
full log and XCF file example (382.32 KB, image/x-xcf)
2023-11-09 14:33 UTC, maderios
Details
debug log (107.70 KB, text/plain)
2023-11-09 14:37 UTC, maderios
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maderios 2023-11-09 14:33:37 UTC
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
Comment 1 maderios 2023-11-09 14:37:00 UTC
Created attachment 162973 [details]
debug log
Comment 2 Maik Qualmann 2023-11-09 14:49:56 UTC
You already know from Bug 466821 that the XCF image loader is part of the KImageFormats-Plugins.

Maik
Comment 3 Maik Qualmann 2023-11-09 14:52:44 UTC
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
Comment 4 maderios 2023-11-17 20:57:27 UTC
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
Comment 5 Maik Qualmann 2023-11-17 21:05:20 UTC
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
Comment 6 maderios 2023-11-18 11:28:05 UTC
(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
Comment 7 maderios 2023-11-18 21:10:50 UTC
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.