RSS/Atom feed Twitter
Site is read-only, email is disabled

Patch to the fuzzy select and by-color select tool

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Patch to the fuzzy select and by-color select tool Chris Moller 04 Aug 05:04
  Patch to the fuzzy select and by-color select tool David Gowers 04 Aug 07:14
Chris Moller
2006-08-04 05:04:29 UTC (over 17 years ago)

Patch to the fuzzy select and by-color select tool

A couple weeks ago I submitted a gimp enhancement bug

http://bugzilla.gnome.org/show_bug.cgi?id=348291

that included a patch that lets the user select how to compare pixels (the current RGB comparison, comparison just on the red, green or blue components, or comparison on the hue, saturation, or value components) when doing a color-based select. Based on some input last week from Michael Natterer, I cleaned up the patch a bit.

I'd like to get this thing included in some future release--if anyone wants to give it a try, the patch is included as an attachment to bug 348291.

Thanks,
Chris Moller

David Gowers
2006-08-04 07:14:29 UTC (over 17 years ago)

Patch to the fuzzy select and by-color select tool

On 8/4/06, Chris Moller wrote:

A couple weeks ago I submitted a gimp enhancement bug

http://bugzilla.gnome.org/show_bug.cgi?id=348291

that included a patch that lets the user select how to compare pixels (the current RGB comparison, comparison just on the red, green or blue components, or comparison on the hue, saturation, or value components) when doing a color-based select. Based on some input last week from Michael Natterer, I cleaned up the patch a bit.

I'd like to get this thing included in some future release--if anyone wants to give it a try, the patch is included as an attachment to bug 348291.

I like this idea (and certainly, I've had need for it.). I get the impression that PDB function signatures are not intended to be changed so often, because of the compatibility issues it could cause.

However, it's exactly the PDB interface to this that I'm most interested in. Maybe you should make a variant named by-color-select-full, it could include also the control of whether to select transparent areas, which I've found very important (and the lack of it is somewhat difficult to work around). If you do, then also make a corresponding fuzzy-select-full.

*trying it now* Okay, hunk #2 of the patch to selection_tools.pdb failed, so I applied it manually.
Not sure why it failed.

..gimp_channel_select_fuzzy and gimp_drawable_bucket_fill_full should also have the select_criteria parameter added; gimp_contiguous_region_by_seed seems to support it.

Addressing the above would satisfy me as to this patches' quality. For more completeness, you could also add a set of radiobuttons arranged horizontally under the main SelectionEditor display ('r','g','b','h','s','v','*') to change between the different selection criteria usable when operating it.

My comments on the UI will follow, after I recompile.