After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 577062 - gimp-edit-blend HSV directionality doesn't match UI HSV directionality
gimp-edit-blend HSV directionality doesn't match UI HSV directionality
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Script-Fu
2.6.6
Other All
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2009-03-28 11:35 UTC by Charles Belov
Modified: 2018-05-24 12:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Script-fu to create an HSV blend from RGB 0 0 255 to 255 0 0 (1.37 KB, text/plain)
2009-03-28 11:39 UTC, Charles Belov
Details
Script-fu to create an HSV blend from RGB 0 0 255 to 255 0 1 (1.37 KB, text/plain)
2009-03-28 11:40 UTC, Charles Belov
Details
Script-fu to create an HSV blend from RGB 255 0 0 to 0 0 255 (1.35 KB, text/plain)
2009-03-28 11:41 UTC, Charles Belov
Details
Script-fu to create an HSV blend from RGB 255 0 1 to 0 0 255 (1.35 KB, text/plain)
2009-03-28 11:41 UTC, Charles Belov
Details

Description Charles Belov 2009-03-28 11:35:57 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).
Comment 1 Charles Belov 2009-03-28 11:39:45 UTC
Created attachment 131550 [details]
Script-fu to create an HSV blend from RGB 0 0 255 to 255 0 0

Used for step 3.
Comment 2 Charles Belov 2009-03-28 11:40:20 UTC
Created attachment 131553 [details]
Script-fu to create an HSV blend from RGB 0 0 255 to 255 0 1

Used for step 4.
Comment 3 Charles Belov 2009-03-28 11:41:09 UTC
Created attachment 131554 [details]
Script-fu to create an HSV blend from RGB 255 0 0 to 0 0 255 

Used for step 5.
Comment 4 Charles Belov 2009-03-28 11:41:54 UTC
Created attachment 131555 [details]
Script-fu to create an HSV blend from RGB 255 0 1 to 0 0 255 

Used for step 6.
Comment 5 Michael Schumacher 2009-03-28 12:05:52 UTC
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.
Comment 6 Charles Belov 2009-04-11 04:42:13 UTC
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.
Comment 7 GNOME Infrastructure Team 2018-05-24 12:33:23 UTC
-- 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.