@David_Tschumperle.
Hello David, I discovered a strange behavior in G’mic but perhaps this fault is produced elsewhere.
When I instruct Gimp 2.10.6 to open raw files with Darktable, Darktable produces 32-bit linear floating point files. When I open them with G’mic for Gimp they show sometimes - but not always - a random colored pattern. See attached screenshot.
Strange enough these patterns show up when the Preview is set to … Off! Sometimes they are visible when Preview is set to On though. It’s a bit random.
When I downsize these files to 16-bit integer, the problem disappears.
I am unable to determine if Darktable is responsible for this or Gimp or G’mic. I don’t find a setting in Darktable to convert my raws to 16-bit integer.
G’mic 2.3.4 for Gimp 2.10.6 on Xubuntu 18.04/64bit.
Darktable converts my NEF file into a 32 bit linear floating point OpenEXR file. When I save this one as a XCF (Gimp’s internal format) and run gmic DSC_4637.xcf in a terminal, I see the following error message.
paul@graveyron:~/Bureaublad$ gmic DSC_4637.xcf
[gmic]-0./ Start G’MIC interpreter.
[gmic]-0./ Input file ‘DSC_4637.xcf’ at position 0convert-im6.q16: memory allocation failed DSC_4637.xcf' @ error/xcf.c/ReadXCFImage/1342. convert-im6.q16: no images defined pnm:-’ @ error/convert.c/ConvertImageCommand/3258.
[gmic]-0./ *** Error *** [instance(1,16,0x556f1d0ac728)] gmicList::load(): Failed to recognize format of file ‘DSC_4637.xcf’.
And when I save that file as a TIFF and say in a terminal
$ gmic DSC_4637.tif
it shows the image, including certain values. When I move the mouse around, I indeed see some values smaller than 0 and some greater than 1. Resides the problem here perhaps?
So yes, that’s probably it.
I think the preview window assumes a float-valued image has values in [0,1], and that would probably require a clamp when displaying the image in the preview widget.
I’ll contact Sébastien about this issue. Thanks !