GNOME Bugzilla – Bug 338049
support for 'registration color' during decomposition
Last modified: 2008-01-15 13:06:43 UTC
A registration color is a color that is represented by 100% values in all decomposed channels, regardless of the colors actual makeup. It is used for things such as crop marks in images destined for physical media, which need to show up on all 4 (C M Y K) channels. I think this would be a nice option to have in the decompose plugin.
Created attachment 63225 [details] [review] patch to decompose.c with registration color support This patch adds support for a registration color, specified as the current foreground color. It adds a new API call for scripts to toggle the registration on, a new checkbox in the decomposition dialog, and function to check pixels for the registration color and set them to 100% (255 specifically) in the destination layers, and a few extra globals to keep track of the option and foreground color. There are inefficiencies, and excessive use of globals, both of which came about due to a change in my implementation partway through the task. If any particular aspect is undesirable I will reimplement this otherwise.
This patch doesn't apply against CVS HEAD. Please resubmit it after fixing the failing hunks.
Created attachment 63239 [details] [review] patch to decompose.c with registration color support I was unknowingly working from the wrong CVS branch. This patch is against cvs HEAD. It is also quite a bit cleaner than the first one.
Let's look at getting this patch into CVS for the 2.4 release. The newly added checkbox probably needs a tooltip that explains what a Registration color is.
I have changed this quite a bit, added const qualifiers and removed the extra argument for the newly added procedure. 2006-06-06 Sven Neumann <sven@gimp.org> * plug-ins/common/decompose.c: applied a modified patch from Clarence Risher that adds support for a registration color (bug #338049).