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 767745 - Weird gradient map behaviour in grayscale mode
Weird gradient map behaviour in grayscale mode
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
2.8.16
Other All
: Normal normal
: 2.10
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2016-06-16 20:20 UTC by Cory Bloor
Modified: 2016-06-17 13:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
image before applying gradient map (99.66 KB, image/png)
2016-06-16 20:20 UTC, Cory Bloor
Details
image after applying gradient map (99.66 KB, image/png)
2016-06-16 20:21 UTC, Cory Bloor
Details

Description Cory Bloor 2016-06-16 20:20:03 UTC
What was done:

1. Create a new image.
2. Change mode to grayscale.
3. Select a black and white linear gradient.
4. Cover the canvas with that gradient.
   (See 'before_gradient_map.png' to see my canvas at this stage.)
5. Apply gradient map.
   (See 'after_gradient_map.png' to see my canvas at this stage.)

What was observed:

   The gradient is split. Rather than a gradient from black to white, the canvas shows a gradient from 50% gray to white, then black to 50% gray.

What was expected:

   Mapping a black and white linear gradient to a black and white linear gradient shouldn't change anything. The behaviour appears to be correct in RGB mode.
Comment 1 Cory Bloor 2016-06-16 20:20:56 UTC
Created attachment 329910 [details]
image before applying gradient map
Comment 2 Cory Bloor 2016-06-16 20:21:29 UTC
Created attachment 329911 [details]
image after applying gradient map
Comment 3 Joao S. O. Bueno 2016-06-17 13:01:13 UTC
I can confirm this happens in 2.8, but is gone in GIMP HEAD - there gradient map behaves as expected on grayscale images.

Closing as fixed.

Suggested workaround for people using 2.8 is to convert the image temporarily to RGB mode before applying a Gradient Map.