Bug 466821

Summary: Digikam git can't manage 16 bit float .xcf
Product: [Frameworks and Libraries] frameworks-kimageformats Reporter: maderios <leoutation>
Component: generalAssignee: Alex Merry <alex.merry>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, kdelibs-bugs, metzpinguin, mircomir
Priority: NOR    
Version: 5.10.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description maderios 2023-03-04 11:32:55 UTC
Conditions 
Digikam git
Arch system
Gimp 2.10.34
Digikam doesn't display thumbs or open 16 bit float .xcf files
Here example files
https://www.dropbox.com/s/nwnyzaymas2hb1o/test-simplebackground-16bit-floatinginteger.xcf?dl=0
https://www.dropbox.com/s/iaxt0nkucl81oyt/test-simplebackground-16bitfloatingpoint.xcf?dl=0
https://www.dropbox.com/s/h9ckhwzafuj5gdo/test-_JUL0025-RT16bitfloatingpoint-2.xcf?dl=0
https://www.dropbox.com/s/0sdcb20lc8a8sxw/_JUL0025-RT16bitfloat-2.tif?dl=0


digikam.metaengine: Cannot load metadata from file with Exiv2 backend: /home/mn/test-digikam/test-simplebackground-16bitfloat.xcf  (Error # 11 :  "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf: The file contains data of an unknown image type"
digikam.metaengine: Check ExifTool availability: true
digikam.metaengine: ExifTool "Load Chunks" "-TagsFromFile /home/mn/test-digikam/test-simplebackground-16bitfloat.xcf -all:all -o -.exv"
digikam.metaengine: Loading metadata with "Exiv2" backend from "/home/mn/test-digikam/_JUL0025-RT16bitfloat-2.tif"
digikam.general: Trying to get thumbnail from "/home/mn/test-digikam/_JUL0025-RT16bitfloat-2.tif" ( "image" )
digikam.general: Trying to get thumbnail with Exiv2 for "/home/mn/test-digikam/_JUL0025-RT16bitfloat-2.tif"
digikam.general: Trying to get thumbnail with DImg preview for "/home/mn/test-digikam/_JUL0025-RT16bitfloat-2.tif"
digikam.dimg: "/home/mn/test-digikam/_JUL0025-RT16bitfloat-2.tif" : "TIFF" file identified
digikam.general: Cancel Main Thread
digikam.general: One job is done
digikam.general: Cancel Main Thread
digikam.metaengine: Cannot load metadata from file with Exiv2 backend: /home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf  (Error # 11 :  "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf: The file contains data of an unknown image type"
digikam.metaengine: Check ExifTool availability: true
digikam.metaengine: ExifTool "Load Chunks" "-TagsFromFile /home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf -all:all -o -.exv"
digikam.metaengine: ExifToolProcess::readOutput(): ExifTool command completed
digikam.metaengine: ExifTool complete command for action "Load Chunks" with elasped time (ms): 29
digikam.metaengine: EXV chunk size: 0
digikam.metaengine: ExifTool parsed command for action "Load Chunks" 1 properties decoded
digikam.metaengine: ExifTool complete "Load Chunks" for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.metaengine: Metadata chunk loaded with ExifTool
digikam.metaengine: Metadata chunk loaded with ExifTool has no data
digikam.metaengine: Loading metadata with "No Backend" backend from "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Trying to get thumbnail from "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf" ( "image" )
digikam.general: Trying to get thumbnail with Exiv2 for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Trying to get thumbnail with DImg preview for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Trying to get thumbnail from Embedded preview with libraw for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to get thumbnail from half preview with libraw for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Trying to get thumbnail from Embedded preview with Exiv2 for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.metaengine: Cannot load metadata with Exiv2:  (Error # 11 :  "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf: The file contains data of an unknown image type"
digikam.dimg: "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf" : "QIMAGE" file identified
digikam.dimg.qimage: Can not load " "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf" " using DImg::DImgQImageLoader!
digikam.dimg.qimage: Error message from loader: "Unable to read image data"
digikam.dimg: "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf" : Unknown image format !!!
digikam.general: mimetype =  "XCF"  ext =  "XCF"
digikam.general: Cannot create thumbnail for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Thumbnail is null for  "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: One job is done
digikam.metaengine: Cannot load metadata from file with Exiv2 backend: /home/mn/test-digikam/test-simplebackground-16bitfloat.xcf  (Error # 11 :  "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf: The file contains data of an unknown image type"
digikam.metaengine: Check ExifTool availability: true
digikam.metaengine: ExifTool "Load Chunks" "-TagsFromFile /home/mn/test-digikam/test-simplebackground-16bitfloat.xcf -all:all -o -.exv"
digikam.metaengine: ExifToolProcess::readOutput(): ExifTool command completed
digikam.metaengine: ExifTool complete command for action "Load Chunks" with elasped time (ms): 14
digikam.metaengine: EXV chunk size: 0
digikam.metaengine: ExifTool parsed command for action "Load Chunks" 1 properties decoded
digikam.metaengine: ExifTool complete "Load Chunks" for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.metaengine: Metadata chunk loaded with ExifTool
digikam.metaengine: Metadata chunk loaded with ExifTool has no data
digikam.metaengine: Loading metadata with "No Backend" backend from "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Trying to get thumbnail from "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf" ( "image" )
digikam.general: Trying to get thumbnail with Exiv2 for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Trying to get thumbnail with DImg preview for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Trying to get thumbnail from Embedded preview with libraw for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to get thumbnail from half preview with libraw for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Trying to get thumbnail from Embedded preview with Exiv2 for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.metaengine: Cannot load metadata with Exiv2:  (Error # 11 :  "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf: The file contains data of an unknown image type"
digikam.dimg: "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf" : "QIMAGE" file identified
digikam.dimg.qimage: Can not load " "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf" " using DImg::DImgQImageLoader!
digikam.dimg.qimage: Error message from loader: "Unable to read image data"
digikam.dimg: "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf" : Unknown image format !!!
digikam.general: mimetype =  "XCF"  ext =  "XCF"
digikam.general: Cannot create thumbnail for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Thumbnail is null for  "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: One job is done
digikam.metaengine: ExifToolProcess::readOutput(): ExifTool command completed
digikam.metaengine: ExifTool complete command for action "Load Chunks" with elasped time (ms): 14
digikam.metaengine: EXV chunk size: 0
digikam.metaengine: ExifTool parsed command for action "Load Chunks" 1 properties decoded
digikam.metaengine: ExifTool complete "Load Chunks" for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.metaengine: Metadata chunk loaded with ExifTool
digikam.metaengine: Metadata chunk loaded with ExifTool has no data
digikam.metaengine: Loading metadata with "No Backend" backend from "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Trying to get thumbnail from "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf" ( "image" )
digikam.general: Trying to get thumbnail with Exiv2 for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Trying to get thumbnail with DImg preview for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Trying to get thumbnail from Embedded preview with libraw for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to get thumbnail from half preview with libraw for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Trying to get thumbnail from Embedded preview with Exiv2 for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.metaengine: Cannot load metadata with Exiv2:  (Error # 11 :  "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf: The file contains data of an unknown image type"
digikam.dimg: "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf" : "QIMAGE" file identified
digikam.dimg.qimage: Can not load " "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf" " using DImg::DImgQImageLoader!
digikam.dimg.qimage: Error message from loader: "Unable to read image data"
digikam.dimg: "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf" : Unknown image format !!!
digikam.general: mimetype =  "XCF"  ext =  "XCF"
digikam.general: Cannot create thumbnail for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Thumbnail is null for  "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.metaengine: Cannot load metadata from file with Exiv2 backend: /home/mn/test-digikam/test-simplebackground-16bitfloat.xcf  (Error # 11 :  "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf: The file contains data of an unknown image type"
digikam.metaengine: Check ExifTool availability: true
digikam.metaengine: ExifTool "Load Chunks" "-TagsFromFile /home/mn/test-digikam/test-simplebackground-16bitfloat.xcf -all:all -o -.exv"
digikam.metaengine: ExifToolProcess::readOutput(): ExifTool command completed
digikam.metaengine: ExifTool complete command for action "Load Chunks" with elasped time (ms): 19
digikam.metaengine: EXV chunk size: 0
digikam.metaengine: ExifTool parsed command for action "Load Chunks" 1 properties decoded
digikam.metaengine: ExifTool complete "Load Chunks" for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.metaengine: Metadata chunk loaded with ExifTool
digikam.metaengine: Metadata chunk loaded with ExifTool has no data
digikam.metaengine: Loading metadata with "No Backend" backend from "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Trying to get thumbnail from "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf" ( "image" )
digikam.general: Trying to get thumbnail with Exiv2 for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Trying to get thumbnail with DImg preview for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Trying to get thumbnail from Embedded preview with libraw for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to get thumbnail from half preview with libraw for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Trying to get thumbnail from Embedded preview with Exiv2 for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.metaengine: Cannot load metadata with Exiv2:  (Error # 11 :  "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf: The file contains data of an unknown image type"
digikam.dimg: "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf" : "QIMAGE" file identified
digikam.dimg.qimage: Can not load " "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf" " using DImg::DImgQImageLoader!
digikam.dimg.qimage: Error message from loader: "Unable to read image data"
digikam.dimg: "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf" : Unknown image format !!!
digikam.general: mimetype =  "XCF"  ext =  "XCF"
digikam.general: Cannot create thumbnail for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Thumbnail is null for  "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.metaengine: Cannot load metadata from file with Exiv2 backend: /home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf  (Error # 11 :  "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf: The file contains data of an unknown image type"
digikam.metaengine: Check ExifTool availability: true
digikam.metaengine: ExifTool "Load Chunks" "-TagsFromFile /home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf -all:all -o -.exv"
digikam.general: One job is done
digikam.general: List of Pending Jobs is empty
digikam.metaengine: ExifToolProcess::readOutput(): ExifTool command completed
digikam.metaengine: ExifTool complete command for action "Load Chunks" with elasped time (ms): 15
digikam.metaengine: EXV chunk size: 0
digikam.metaengine: ExifTool parsed command for action "Load Chunks" 1 properties decoded
digikam.metaengine: ExifTool complete "Load Chunks" for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.metaengine: Metadata chunk loaded with ExifTool
digikam.metaengine: Metadata chunk loaded with ExifTool has no data
digikam.metaengine: Loading metadata with "No Backend" backend from "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Trying to get thumbnail from "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf" ( "image" )
digikam.general: Trying to get thumbnail with Exiv2 for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Trying to get thumbnail with DImg preview for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Trying to get thumbnail from Embedded preview with libraw for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to get thumbnail from half preview with libraw for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Trying to get thumbnail from Embedded preview with Exiv2 for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.metaengine: Cannot load metadata with Exiv2:  (Error # 11 :  "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf: The file contains data of an unknown image type"
digikam.dimg: "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf" : "QIMAGE" file identified
digikam.dimg.qimage: Can not load " "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf" " using DImg::DImgQImageLoader!
digikam.dimg.qimage: Error message from loader: "Unable to read image data"
digikam.dimg: "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf" : Unknown image format !!!
digikam.general: mimetype =  "XCF"  ext =  "XCF"
digikam.general: Cannot create thumbnail for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Thumbnail is null for  "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.metaengine: Cannot load metadata from file with Exiv2 backend: /home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf  (Error # 11 :  "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf: The file contains data of an unknown image type"
digikam.metaengine: Check ExifTool availability: true
digikam.metaengine: ExifTool "Load Chunks" "-TagsFromFile /home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf -all:all -o -.exv"
digikam.general: Event is dispatched through a passive pop-up
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
digikam.metaengine: ExifToolProcess::readOutput(): ExifTool command completed
digikam.metaengine: ExifTool complete command for action "Load Chunks" with elasped time (ms): 10
digikam.metaengine: EXV chunk size: 0
digikam.metaengine: ExifTool parsed command for action "Load Chunks" 1 properties decoded
digikam.metaengine: ExifTool complete "Load Chunks" for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.metaengine: Metadata chunk loaded with ExifTool
digikam.metaengine: Metadata chunk loaded with ExifTool has no data
digikam.metaengine: Loading metadata with "No Backend" backend from "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Cancel Main Thread
digikam.general: Trying to get thumbnail from "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf" ( "image" )
digikam.general: Cancel Main Thread
digikam.general: Trying to get thumbnail with Exiv2 for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Trying to get thumbnail with DImg preview for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Trying to get thumbnail from Embedded preview with libraw for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.rawengine: Failed to load embedded RAW preview
digikam.general: Trying to get thumbnail from half preview with libraw for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Trying to get thumbnail from Embedded preview with Exiv2 for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.metaengine: Cannot load metadata with Exiv2:  (Error # 11 :  "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf: The file contains data of an unknown image type"
digikam.dimg: "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf" : "QIMAGE" file identified
digikam.dimg.qimage: Can not load " "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf" " using DImg::DImgQImageLoader!
digikam.dimg.qimage: Error message from loader: "Unable to read image data"
digikam.dimg: "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf" : Unknown image format !!!
digikam.general: mimetype =  "XCF"  ext =  "XCF"
digikam.general: Cannot create thumbnail for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Thumbnail is null for  "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
"Not supported"
"Not supported"
"Not supported"
"Not supported"
digikam.metaengine: ExifTool "Load Metadata" "-json -G:0:1:2:4:6 -l /home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.metaengine: Cannot load metadata from file with Exiv2 backend: /home/mn/test-digikam/test-simplebackground-16bitfloat.xcf  (Error # 11 :  "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf: The file contains data of an unknown image type"
digikam.metaengine: Check ExifTool availability: true
digikam.metaengine: ExifTool "Load Chunks" "-TagsFromFile /home/mn/test-digikam/test-simplebackground-16bitfloat.xcf -all:all -o -.exv"
digikam.metaengine: ExifToolProcess::readOutput(): ExifTool command completed
digikam.metaengine: ExifToolProcess::readOutput(): ExifTool command completed
digikam.metaengine: ExifTool complete command for action "Load Chunks" with elasped time (ms): 7
digikam.metaengine: EXV chunk size: 0
digikam.metaengine: ExifTool parsed command for action "Load Chunks" 1 properties decoded
digikam.metaengine: ExifTool complete "Load Chunks" for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.metaengine: Metadata chunk loaded with ExifTool
digikam.metaengine: Metadata chunk loaded with ExifTool has no data
digikam.metaengine: Loading metadata with "No Backend" backend from "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: Metadata loading with Exiv2 took 21 ms ( false )
digikam.metaengine: ExifTool complete command for action "Load Metadata" with elasped time (ms): 13
digikam.metaengine: ExifTool Json map size: 24
digikam.metaengine: ExifTool parsed command for action "Load Metadata" 23 properties decoded
digikam.metaengine: ExifTool complete "Load Metadata" for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.dimg: "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf" : "QIMAGE" file identified
digikam.metaengine: Cannot load metadata from file with Exiv2 backend: /home/mn/test-digikam/test-simplebackground-16bitfloat.xcf  (Error # 11 :  "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf: The file contains data of an unknown image type"
digikam.metaengine: Check ExifTool availability: true
digikam.metaengine: ExifTool "Load Chunks" "-TagsFromFile /home/mn/test-digikam/test-simplebackground-16bitfloat.xcf -all:all -o -.exv"
digikam.metaengine: ExifToolProcess::readOutput(): ExifTool command completed
digikam.metaengine: ExifTool complete command for action "Load Chunks" with elasped time (ms): 11
digikam.metaengine: EXV chunk size: 0
digikam.metaengine: ExifTool parsed command for action "Load Chunks" 1 properties decoded
digikam.metaengine: ExifTool complete "Load Chunks" for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.metaengine: Metadata chunk loaded with ExifTool
digikam.metaengine: Metadata chunk loaded with ExifTool has no data
digikam.metaengine: Loading metadata with "No Backend" backend from "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.dimg.qimage: Can not load " "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf" " using DImg::DImgQImageLoader!
digikam.dimg.qimage: Error message from loader: "Unable to read image data"
digikam.dimg: "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf" : Unknown image format !!!
digikam.general: Cannot load image for "/home/mn/test-digikam/test-simplebackground-16bitfloat.xcf"
digikam.general: d->image is NULL
digikam.general: d->image is NULL
digikam.general: d->image is NULL
"Not supported"
digikam.metaengine: ExifTool "Load Metadata" "-json -G:0:1:2:4:6 -l /home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.metaengine: Cannot load metadata from file with Exiv2 backend: /home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf  (Error # 11 :  "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf: The file contains data of an unknown image type"
digikam.metaengine: Check ExifTool availability: true
digikam.metaengine: ExifTool "Load Chunks" "-TagsFromFile /home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf -all:all -o -.exv"
digikam.metaengine: ExifToolProcess::readOutput(): ExifTool command completed
digikam.metaengine: ExifToolProcess::readOutput(): ExifTool command completed
digikam.metaengine: ExifTool complete command for action "Load Chunks" with elasped time (ms): 10
digikam.metaengine: EXV chunk size: 0
digikam.metaengine: ExifTool parsed command for action "Load Chunks" 1 properties decoded
digikam.metaengine: ExifTool complete "Load Chunks" for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.metaengine: Metadata chunk loaded with ExifTool
digikam.metaengine: Metadata chunk loaded with ExifTool has no data
digikam.metaengine: Loading metadata with "No Backend" backend from "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: Metadata loading with Exiv2 took 24 ms ( false )
digikam.metaengine: ExifTool complete command for action "Load Metadata" with elasped time (ms): 13
digikam.metaengine: ExifTool Json map size: 24
digikam.metaengine: ExifTool parsed command for action "Load Metadata" 23 properties decoded
digikam.metaengine: ExifTool complete "Load Metadata" for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.dimg: "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf" : "QIMAGE" file identified
digikam.metaengine: Cannot load metadata from file with Exiv2 backend: /home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf  (Error # 11 :  "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf: The file contains data of an unknown image type"
digikam.metaengine: Check ExifTool availability: true
digikam.metaengine: ExifTool "Load Chunks" "-TagsFromFile /home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf -all:all -o -.exv"
digikam.metaengine: ExifToolProcess::readOutput(): ExifTool command completed
digikam.metaengine: ExifTool complete command for action "Load Chunks" with elasped time (ms): 11
digikam.metaengine: EXV chunk size: 0
digikam.metaengine: ExifTool parsed command for action "Load Chunks" 1 properties decoded
digikam.metaengine: ExifTool complete "Load Chunks" for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.metaengine: Metadata chunk loaded with ExifTool
digikam.metaengine: Metadata chunk loaded with ExifTool has no data
digikam.metaengine: Loading metadata with "No Backend" backend from "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.dimg.qimage: Can not load " "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf" " using DImg::DImgQImageLoader!
digikam.dimg.qimage: Error message from loader: "Unable to read image data"
digikam.dimg: "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf" : Unknown image format !!!
digikam.general: Cannot load image for "/home/mn/test-digikam/test-_JUL0025-RT16bitfloat-2.xcf"
digikam.general: d->image is NULL
digikam.general: d->image is NULL
digikam.general: d->image is NULL
"Not supported"
"Not supported"
digikam.metaengine: ExifTool "Load Metadata" "-json -G:0:1:2:4:6 -l /home/mn/test-digikam/_JUL0025-RT16bitfloat-2.tif"
digikam.metaengine: Loading metadata with "Exiv2" backend from "/home/mn/test-digikam/_JUL0025-RT16bitfloat-2.tif"
digikam.general: Metadata loading with Exiv2 took 2 ms ( true )
digikam.general: "Standard Exif Tags" decoding took 4 ms ( false )
digikam.general: "MakerNote Exif Tags" decoding took 1 ms ( false )
digikam.general: "IPTC Records" decoding took 0 ms ( true )
digikam.general: "XMP Schema" decoding took 0 ms ( true )
digikam.metaengine: ExifToolProcess::readOutput(): ExifTool command completed
digikam.metaengine: ExifTool complete command for action "Load Metadata" with elasped time (ms): 92
digikam.metaengine: ExifTool Json map size: 258
digikam.metaengine: ExifTool parsed command for action "Load Metadata" 183 properties decoded
digikam.metaengine: ExifTool complete "Load Metadata" for "/home/mn/test-digikam/_JUL0025-RT16bitfloat-2.tif"
digikam.dimg: "/home/mn/test-digikam/_JUL0025-RT16bitfloat-2.tif" : "TIFF" file identified
digikam.metaengine: Loading metadata with "Exiv2" backend from "/home/mn/test-digikam/_JUL0025-RT16bitfloat-2.tif"
Comment 1 Maik Qualmann 2023-03-04 11:35:32 UTC
The XCF image loader is part of the KImageFormats plugins, which we at digiKam do not develop.

Maik
Comment 2 Albert Astals Cid 2023-03-06 22:33:08 UTC
Mirco you did some work on the xcf code.

Would you have some time to look at this?
Comment 3 Maik Qualmann 2023-03-07 06:49:31 UTC
Since we got the same bug report about supporting float16 (half float) for our TIFF loader, here maybe the function to read and convert float16 as a help. The basic function comes from the Adobe DNG-SDK.

https://invent.kde.org/graphics/digikam/-/blob/master/core/dplugins/dimg/tiff/dimgtiffloader_load.cpp#L951

Maik
Comment 4 Mirco Miranda 2023-03-07 06:53:31 UTC
(In reply to Albert Astals Cid from comment #2)
> Mirco you did some work on the xcf code.
> 
> Would you have some time to look at this?

The Qt plugin supports xcf specs up to version 11 and the files in question are version 12. We have a merge request to add this functionality but it has other problems and consequently it breaks the tests. I tested the MR (https://invent.kde.org/frameworks/kimageformats/-/merge_requests/108) and some generated images are not correct (mainly related to alpha blending) .
Adding support to version 12 requires in-depth knowledge of the XCF format which I don't have.
Comment 5 Mirco Miranda 2023-03-07 06:55:12 UTC
(In reply to Maik Qualmann from comment #3)
> Since we got the same bug report about supporting float16 (half float) for
> our TIFF loader, here maybe the function to read and convert float16 as a
> help. The basic function comes from the Adobe DNG-SDK.
> 
> https://invent.kde.org/graphics/digikam/-/blob/master/core/dplugins/dimg/
> tiff/dimgtiffloader_load.cpp#L951

Recent Qts also have the type qfloat16 and I just used that to read TIFFs :)
Comment 6 Maik Qualmann 2023-03-07 07:22:18 UTC
Thanks for pointing to qfloat16.

Maik
Comment 7 maderios 2023-03-31 14:15:48 UTC
 I see KImageFormats works fine with .psd proprietary Adobe format. This leads people to think that it is difficult to work professionally with free image editing software, Gimp ...
Comment 8 Mirco Miranda 2023-03-31 17:21:46 UTC
(In reply to maderios from comment #7)
>  I see KImageFormats works fine with .psd proprietary Adobe format. 

Nobody has it with GIMP. The PSD plugin works well because I work in large format digital printing and everyone uses Photoshop. I maintain two PSD readers: the one for the company I work for (it's not a qt plugin) and the KDE Qt plugin (for fun).

I would also like to fix the XCF plugin but no promises. For now, I've only looked at the specs.
Comment 9 maderios 2023-06-04 10:07:48 UTC
A hope that seems dead :(
https://invent.kde.org/frameworks/kimageformats/-/merge_requests/108#note_693028
Comment 10 Mirco Miranda 2023-08-14 08:43:05 UTC
(In reply to maderios from comment #9)
> A hope that seems dead :(
> https://invent.kde.org/frameworks/kimageformats/-/merge_requests/
> 108#note_693028

I made some changes to Martin's code to fix the most obvious problems and made a new MR (https://invent.kde.org/frameworks/kimageformats/-/merge_requests/166).

Please try it.
Comment 11 Mirco Miranda 2024-09-30 05:52:44 UTC
I consider the problem solved. For problems with the future GIMP 3, please refer to the specific bug report (https://bugs.kde.org/show_bug.cgi?id=491795).