I did some good progress with the color management of the preview area for the GIMP plug-in.
The patched code in this gist adds a
function that is called at this point in the code:
convert_to_display(computed_preview); calibrate_image(computed_preview,sp,true); convert_image2uchar(computed_preview); computed_preview.channel(0);
The code seems to work fine, but it would be great if somebody else could test it. For this, I have prepared a special version of the GIMP AppImage with the patched gmic plug-in: https://www.dropbox.com/s/xfo6okeqhx4kv5u/gimp-2.9.5-20160906.glibc2.15-x86_64.AppImage?dl=0
What remains to be done:
- color-manage the preview image when no filter is selected
- automatically track display profile changes when the window is moved to a different monitor