GNOME Bugzilla – Bug 577062
gimp-edit-blend HSV directionality doesn't match UI HSV directionality
Last modified: 2018-05-24 12:33:23 UTC
Please describe the problem: Rather than providing either HSV clockwise hue blends or HSV counterclockwise hue blends, gimp-edit-blend appears to choose a blend direction that avoids crossing the 0 degree hue line (red). I expect to be able to duplicate the functionality for the UI. That is, I expect to be able to request HSV clockwise hue blends or HSV counterclockwise hue blends via script-fu. Steps to reproduce: 1. There are 4 scripts attached. Save them to your script folder. 2. Filters > Script-fu > Refresh Scripts. 3. Debug > HSV Gradient Test RGB 0 0 255 to 255 0 0. 4. Debug > HSV Gradient Test RGB 0 0 255 to 255 0 1. 5. Debug > HSV Gradient Test RGB 255 0 0 to 0 0 255. 6. Debug > HSV Gradient Test RGB 255 0 1 to 0 0 255. Actual results: 3-4. Create new images. 3 goes from blue to red via green. 4 goes from blue to near-red via purple. 5-6. Create new images. 5 goes from red to blue via green. 6 goes from red to blue via purple. Expected results: 3-4. Both images go from blue to red via the same color (green or purple, but not both). 5-6. Both images go from red to blue via the same color (purple or green, but not both, and the opposite color from steps 3-4). Does this happen every time? Yes Other information: The procedure browser currently lists the following blend-mode values for gimp-edit-blend: The type of blend { FG-BG-RGB-MODE (0), FG-BG-HSV-MODE (1), FG-TRANSPARENT-MODE (2), CUSTOM-MODE (3) } If we assume FG-BG-HSV-MODE (1) has been implemented as HSV with no 0 crossing, then there is a need for FG-BG-HSV-CW-MODE (4) and FG-BG-HSV-CCW-MODE (5). If bug 141927 is implemented, there would also be a need for FG-BG-HSV-SHORT-MODE (6) and FG-BG-HSV-LONG-MODE (7).
Created attachment 131550 [details] Script-fu to create an HSV blend from RGB 0 0 255 to 255 0 0 Used for step 3.
Created attachment 131553 [details] Script-fu to create an HSV blend from RGB 0 0 255 to 255 0 1 Used for step 4.
Created attachment 131554 [details] Script-fu to create an HSV blend from RGB 255 0 0 to 0 0 255 Used for step 5.
Created attachment 131555 [details] Script-fu to create an HSV blend from RGB 255 0 1 to 0 0 255 Used for step 6.
Maybe you do want to have a try at implementing this? If you need help, you can ask on IRC or the gimp-developer mailing list.
I, as initiator of the bug, am requesting that the priority of this bug be changed to low and the severity to minor due to the presence of a simple workaround. Workaround is to use CUSTOM-MODE for the blend type and one of the following commands gimp-context-set-gradient "FG to BG (HSV clockwise hue)" gimp-context-set-gradient "FG to BG (HSV counter-clockwise)" prior to issuing the gimp-edit-blend command.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/302.