Posts: 8
	Threads: 3
	Joined: Oct 2017
	
Reputation: 
2
Operating system(s): Linux
	
 
 
	
		
		
 
		10-22-2017, 08:43 AM 
(This post was last modified: 10-22-2017, 04:28 PM by Dave Rove.)
	
	 
	
		How do I create a gradient map from an image?
If I have an image that I know started off as greyscale and that somebody has colourized it with a gradient map, and that the resultant image is sufficiently detailed to have all 256 lightness values mapped to a colour -- then how do I create a colour gradient map from that image so that I can colourize images similarly myself?
I know that this is possible because I did it myself a few years back and I have the .ggr gradient maps that resulted, but Google has failed me now and I've forgotten how I did it.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 134
	Threads: 15
	Joined: Apr 2017
	
Reputation: 
6
Gimp version: 
Operating system(s): Linux
	
 
 
	
		
		
		10-22-2017, 10:16 AM 
(This post was last modified: 10-22-2017, 10:17 AM by Zero01.)
	
	 
	
		OK, well not sure then. Can only think of perhaps Colors>Map>Sample Colorize, you need both images, the one you're taking from and the one you're adding to.. not an expert but that seems to have a better (less weird) effect. Otherwise I'd wait for someone with a bit more knowledge on the subject than me (and there are quite a few) to guide you to the desired result.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 243
	Threads: 16
	Joined: Oct 2016
	
Reputation: 
11
Operating system(s): Windows (Vista and later)
	
 
 
	
	
		There is a possibility to order the created gradient, but in any case what you ask seems impossible to me, because an image can have the luminosity L derived from different R,G,B combinations:
L = xR+yG+zB (x, y, z being coefficients of R, G, B values)
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 243
	Threads: 16
	Joined: Oct 2016
	
Reputation: 
11
Operating system(s): Windows (Vista and later)
	
 
 
	
	
		IMO still a gradient can't recreate different R,G,B combo having the same luminosity.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 243
	Threads: 16
	Joined: Oct 2016
	
Reputation: 
11
Operating system(s): Windows (Vista and later)
	
 
 
	
	
		Did someone try to:
- desaturate the image
- use the gradient so created to rebuild the image in colours
I made some attempts: no success (outcome maybe nice from a crazy painting viewpoint...)
If someone succeeded please:
- post the original (or the one reduced to 256 colors)
- post the gradient created
- post the desaturated
- post the rebuilt
Just to learn...