GNOME Bugzilla – Bug 309112
Empty channels in compose plug-in
Last modified: 2008-01-15 12:57:26 UTC
Using function tool: "Image"->"Mode"->"Compose" If you compose eg to an RGB image and you only have two images channels that you want to compose(eg. Green and Red channels only). It would be very helpful if in the "channel representations" list where you select which file to go into which channel, if there were additional channel options to fill the remaining empty channel(s) (eg blue) with either the foreground or background or white or black colours. This is a very common operation in the microscopy field, where you frequently work with RGB images but only want to compose two channels.
Sounds like a useful feature and it is probably easy to implement. Adding the gnome-love keyword.
Here is a patch that adds this functionality. Channels can now be replaced with a 'Maks value', that can be either black or white or anything in between. At least one image or drawable still has to be provided though.
Created attachment 52207 [details] [review] And the patch ...
That patch looks excellent :) (it happens about once in a million times that a patch follows the coding style so perfectly) Will look into applying that.
Created attachment 52428 [details] [review] A small improvement This little improvement over the previous patch warns the user that at least one image must be selected before the plugin's dialog disapears.
Thankyou for your work. I am not sure what to do with the patch (if anything) but am happy to wait for a subsequent gimp version with it incorporated.
Thanks for the update, applied it to CVS: 2005-09-20 Michael Natterer <mitch@gimp.org> * plug-ins/common/compose.c: applied patch from Sylvain Foret which allows to use fixed greyscale values instead of drawables for color components. Fixes bug #309112.