Mobile app version of vmapp.org
Login or Join
Miguel516

: What exactly does gradient map actually do? I'm trying to do the exact same thing as How can I map the colors in a greyscale image to a specific color "gradient"?, but am failing

@Miguel516

Posted in: #Gimp #Gradient

I'm trying to do the exact same thing as How can I map the colors in a greyscale image to a specific color "gradient"?, but am failing for unknown reasons. I think the real problem is that I don't understand what gradient map actually does.

To try to figure out why I wasn't getting the result I was expecting, I created a linear black and white gradient as my test image. I then used the same gradient for my map. My expectation was that my gradient would either remain the same or be reversed. The actual result was quite different, though.

Before applying Gradient Map:


After applying Gradient Map:


What the heck is happening? How can I get the results I expect?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Miguel516

1 Comments

Sorted by latest first Latest Oldest Best

 

@BetL875

I don't have the slightest idea of how you acheived that result - I just did the same thing, both in GIMP 2.8 and on a recent build of the development branch - and in both versions I got essentially the same image after mapping a white-to-black gradient to a white-to-black gradient as you did. Colors-Map->Gradient Map is the filter to use.

I tried to change the offset in the blending-tool tool options, and even played with the dynamics for color, but none of these settings affect the gradient map plug-in. It is like your mapping-to gradient was rotated (and rotating a gradient is no easy thing to do in GIMP). Can you double check what you did?

The only way I got something close to your result was by using Filters->Map->Displace which does something completely different from gradient mapping.

update As for the comments bellow, the reported behavior will happen on grayscale images in GIMP up to 2.8. It is fixed in the development branch which will eventually become GIMP 2.10.

The suggested workaround up to the release is to convert the image back to RGB before applying a Gradient Map.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme