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

Scripting Gimp's Hue-Saturation tool's overlap?

This discussion is connected to the gimp-user-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.

9 of 9 messages available
Toggle history

Please log in to manage your subscriptions.

Scripting Gimp's Hue-Saturation tool's overlap? Sam Bizzell 08 Apr 00:49
  Scripting Gimp's Hue-Saturation tool's overlap? Richard Gitschlag 10 Apr 23:29
   Scripting Gimp's Hue-Saturation tool's overlap? Sam Bizzell 12 Apr 11:42
  Scripting Gimp's Hue-Saturation tool's overlap? Kevin Cozens 11 Apr 17:47
   Scripting Gimp's Hue-Saturation tool's overlap? Sam Bizzell 12 Apr 11:46
    Scripting Gimp's Hue-Saturation tool's overlap? Liam R E Quin 12 Apr 18:26
     Scripting Gimp's Hue-Saturation tool's overlap? Richard Gitschlag 13 Apr 02:25
      Scripting Gimp's Hue-Saturation tool's overlap? Sam Bizzell 13 Apr 11:26
     Scripting Gimp's Hue-Saturation tool's overlap? Sam Bizzell 13 Apr 11:23
Sam Bizzell
2013-04-08 00:49:48 UTC (over 11 years ago)

Scripting Gimp's Hue-Saturation tool's overlap?

Sorry if this is the wrong way to ask this question, but I am trying to write a script which desperately needs access to the overlap function of the Hue-Saturation tool. What I've found so far is

(gimp-hue-saturation drawable hue-range hue-offset lightness saturation)

Am I overlooking something obvious? Thanks so much in advance for any information you may be able to provide! I love the Gimp and thoroughly appreciate ALL developers involved in its continuous evolution into the most versatile tool I use daily!! ~Sam

Richard Gitschlag
2013-04-10 23:29:16 UTC (over 11 years ago)

Scripting Gimp's Hue-Saturation tool's overlap?

From: applechachi@gmail.com
Date: Sun, 7 Apr 2013 18:49:48 -0600 To: gimp-user-list@gnome.org
Subject: [Gimp-user] Scripting Gimp's Hue-Saturation tool's overlap?

Sorry if this is the wrong way to ask this question, but… I am trying to write a script which desperately needs access to the overlap function of the Hue-Saturation tool. What I've found so far is…

(gimp-hue-saturation drawable hue-range hue-offset lightness saturation)

Am I overlooking something obvious? Thanks so much in advance for any information you may be able to provide! I love the Gimp and thoroughly appreciate ALL developers involved in its continuous evolution into the most versatile tool I use daily!!

~Sam
_______________________________________________ gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list

Does not seem possible atm, sorry. But I do agree the Hue-Saturation-with-overlap functionality should be exposed to GIMP scripting just the same....

-- Stratadrake strata_ranger@hotmail.com
--------------------
Numbers may not lie, but neither do they tell the whole truth.

=

Kevin Cozens
2013-04-11 17:47:57 UTC (over 11 years ago)

Scripting Gimp's Hue-Saturation tool's overlap?

On 13-04-07 08:49 PM, Sam Bizzell wrote:

I am trying to write a script which desperately needs access to the overlap function of the Hue-Saturation tool. What I've found so far is

(gimp-hue-saturation drawable hue-range hue-offset lightness saturation)

Unless the overlap setting can be simulated/emulated using a second layer, there is currently no way to set overlap. It would require a new PDB call that takes the extra parameter or adding a context setting to allow overlap to be set.

Cheers!

Kevin.

http://www.ve3syb.ca/           |"Nerds make the shiny things that distract
Owner of Elecraft K2 #2172      | the mouth-breathers, and that's why we're
                                 | powerful!"
#include  |             --Chris Hardwick
Sam Bizzell
2013-04-12 11:42:48 UTC (over 11 years ago)

Scripting Gimp's Hue-Saturation tool's overlap?

Thanks for the response! I was sure hoping I had overlooked something. Too bad this functionality's not available. Do you know how one would go about sending in a feature request?

On Apr 10, 2013, at 5:29 PM, Richard Gitschlag wrote:

From: applechachi@gmail.com
Date: Sun, 7 Apr 2013 18:49:48 -0600 To: gimp-user-list@gnome.org
Subject: [Gimp-user] Scripting Gimp's Hue-Saturation tool's overlap?

Sorry if this is the wrong way to ask this question, but… I am trying to write a script which desperately needs access to the overlap function of the Hue-Saturation tool. What I've found so far is…

(gimp-hue-saturation drawable hue-range hue-offset lightness saturation)

Am I overlooking something obvious? Thanks so much in advance for any information you may be able to provide! I love the Gimp and thoroughly appreciate ALL developers involved in its continuous evolution into the most versatile tool I use daily!! ~Sam
_______________________________________________ gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list

Does not seem possible atm, sorry. But I do agree the Hue-Saturation-with-overlap functionality should be exposed to GIMP scripting just the same....

-- Stratadrake strata_ranger@hotmail.com
--------------------
Numbers may not lie, but neither do they tell the whole truth.

Sam Bizzell
2013-04-12 11:46:56 UTC (over 11 years ago)

Scripting Gimp's Hue-Saturation tool's overlap?

Thanks Kevin! I've been wracking my brain trying to figure out another way to simulate the overlap behavior, sure haven't been able to come up with anything yet. Do you have any suggestions, or know where I could look for the answer? I also need to submit a feature request to have this added to a future Gimp.

On Apr 11, 2013, at 11:47 AM, Kevin Cozens wrote:

On 13-04-07 08:49 PM, Sam Bizzell wrote:

I am trying to write a script which desperately needs access to the overlap function of the Hue-Saturation tool. What I've found so far is

(gimp-hue-saturation drawable hue-range hue-offset lightness saturation)

Unless the overlap setting can be simulated/emulated using a second layer, there is currently no way to set overlap. It would require a new PDB call that takes the extra parameter or adding a context setting to allow overlap to be set.

-- Cheers!

Kevin.

http://www.ve3syb.ca/ |"Nerds make the shiny things that distract Owner of Elecraft K2 #2172 | the mouth-breathers, and that's why we're | powerful!" #include | --Chris Hardwick _______________________________________________ gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list

Liam R E Quin
2013-04-12 18:26:56 UTC (over 11 years ago)

Scripting Gimp's Hue-Saturation tool's overlap?

On Fri, 2013-04-12 at 05:46 -0600, Sam Bizzell wrote:

Thanks Kevin! I've been wracking my brain trying to figure out another way to simulate the overlap behavior, sure haven't been able to come up with anything yet. Do you have any suggestions, or know where I could look for the answer? I also need to submit a feature request to have this added to a future Gimp.

Are you using gimp 2.8? On which platform? If you compile your own gimp, this would probably be reasonably easy to add.

An alternative might be to see if there's a saturation argument to the rotate colours plugin.

Another way is to use select by colour, perhaps, and then affect the selection, perhaps on a duplicate layer and using desaturate and layer opacity?

Liam

Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Richard Gitschlag
2013-04-13 02:25:15 UTC (over 11 years ago)

Scripting Gimp's Hue-Saturation tool's overlap?

From: liam@holoweb.net
To: applechachi@gmail.com
Date: Fri, 12 Apr 2013 14:26:56 -0400 CC: gimp-user-list@gnome.org
Subject: Re: [Gimp-user] Scripting Gimp's Hue-Saturation tool's overlap?

On Fri, 2013-04-12 at 05:46 -0600, Sam Bizzell wrote:

Thanks Kevin! I've been wracking my brain trying to figure out another way to simulate the overlap behavior, sure haven't been able to come up with anything yet. Do you have any suggestions, or know where I could look for the answer? I also need to submit a feature request to have this added to a future Gimp.

Are you using gimp 2.8? On which platform? If you compile your own gimp, this would probably be reasonably easy to add.

An alternative might be to see if there's a saturation argument to the rotate colours plugin.

Another way is to use select by colour, perhaps, and then affect the selection, perhaps on a duplicate layer and using desaturate and layer opacity?

Liam

--
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

_______________________________________________ gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list

Select By Color does sound like the best option - calculate the threshold to based on hue, with some degree of antialiasing and/or feathering, then just do a regular Hue-Saturation adjustment on the resulting selection.

Remember, the "Overlap" region really only affects how GIMP handles the transition from one Hue-Saturation channel to the next. Internally, GIMP maps an input pixel (in HSV space) by both of the nearest channels and then interpolates the result based how close the hue is to the exact mid-hue between channels (relative to the overlap width).

Second that there should be a PDB call that allows you to specify the overlap setting. It's part of the tool's UI, it should be exposed for scripts too.

-- Stratadrake strata_ranger@hotmail.com
--------------------
Numbers may not lie, but neither do they tell the whole truth.

=

Sam Bizzell
2013-04-13 11:23:03 UTC (over 11 years ago)

Scripting Gimp's Hue-Saturation tool's overlap?

Hi Liam, I'm using Gimp 2.8.2 on MacOS 10.8.3 (the precompiled X11 version, much snappier for me than the native Gimp 2.8.4). I've definitely dabbled in programming and would not be against attempting to "roll my own" Gimp. I would, however, really appreciate any pointers which would get me started in the right direction. For now I'll start looking into the source code to see if I can figure out what needs to be done.

I'd never used the rotate colors plugin. Seems extremely powerful! Not sure if it will do exactly what I need though, but I don't really understand how to utilize it's full functionality just yet.

Not sure if I can get the accuracy I need out of any other color selection method. I will fiddle around with it a bit though and see if it's possible for me.

Thanks so much for your help!

On Apr 12, 2013, at 12:26 PM, Liam R E Quin wrote:

On Fri, 2013-04-12 at 05:46 -0600, Sam Bizzell wrote:

Thanks Kevin! I've been wracking my brain trying to figure out another way to simulate the overlap behavior, sure haven't been able to come up with anything yet. Do you have any suggestions, or know where I could look for the answer? I also need to submit a feature request to have this added to a future Gimp.

Are you using gimp 2.8? On which platform? If you compile your own gimp, this would probably be reasonably easy to add.

An alternative might be to see if there's a saturation argument to the rotate colours plugin.

Another way is to use select by colour, perhaps, and then affect the selection, perhaps on a duplicate layer and using desaturate and layer opacity?

Liam

--
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

Sam Bizzell
2013-04-13 11:26:38 UTC (over 11 years ago)

Scripting Gimp's Hue-Saturation tool's overlap?

Thanks for the info! I will keep trying to find a work around for now. So unfortunate that I can't just call the overlap setting as it works perfectly for me as is. :(

Glad I'm not alone in my thinking though! :)

On Apr 12, 2013, at 8:25 PM, Richard Gitschlag wrote:

From: liam@holoweb.net
To: applechachi@gmail.com
Date: Fri, 12 Apr 2013 14:26:56 -0400 CC: gimp-user-list@gnome.org
Subject: Re: [Gimp-user] Scripting Gimp's Hue-Saturation tool's overlap?

On Fri, 2013-04-12 at 05:46 -0600, Sam Bizzell wrote:

Thanks Kevin! I've been wracking my brain trying to figure out another way to simulate the overlap behavior, sure haven't been able to come up with anything yet. Do you have any suggestions, or know where I could look for the answer? I also need to submit a feature request to have this added to a future Gimp.

Are you using gimp 2.8? On which platform? If you compile your own gimp, this would probably be reasonably easy to add.

An alternative might be to see if there's a saturation argument to the rotate colours plugin.

Another way is to use select by colour, perhaps, and then affect the selection, perhaps on a duplicate layer and using desaturate and layer opacity?

Liam

--
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org freenode/#xml

_______________________________________________ gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list

Select By Color does sound like the best option - calculate the threshold to based on hue, with some degree of antialiasing and/or feathering, then just do a regular Hue-Saturation adjustment on the resulting selection.

Remember, the "Overlap" region really only affects how GIMP handles the transition from one Hue-Saturation channel to the next. Internally, GIMP maps an input pixel (in HSV space) by both of the nearest channels and then interpolates the result based how close the hue is to the exact mid-hue between channels (relative to the overlap width).

Second that there should be a PDB call that allows you to specify the overlap setting. It's part of the tool's UI, it should be exposed for scripts too.

-- Stratadrake strata_ranger@hotmail.com
--------------------
Numbers may not lie, but neither do they tell the whole truth.