People of the internet,
I find myself looking for a way to turn an image into a gradient, for the purposes of gradient mapping onto a texture. Is this possible at all, and if so: using standard photoshop tools, or is there a script that can help me?
The obvious problem I see is that several pixels with the same luminosity can have different hue/saturation values applied to them, but I'm hoping there would be the option of averaging the values or taking the one most encountered.
I know about 'apply image' by the way, and while that's nice, the idea is to get a reusable gradient that I can easily tweak.
Additionally, when working with gradients/gradient maps, is there a way to have a newly inserted point just fit into the gradient? Like if it's just a black to white gradient and I click at the halfway point, it will be 50% grey?
Replies
https://kuler.adobe.com/
edit: Ah, Froyok posted while I was typing. That seems like more work than just manually picking the colours in photoshop. The problem with this manual approach is that it's a pain in the ass to place the colours correctly so that if you'd apply the obtained gradient as a gradient map to the same image, it will look mostly the same.
and then
Image - Mode - Color Table to edit, load and save palettes.
That's the closest I can think of! Of course if you are starting from a photograph or an heavily rendered painting it won't work too well. But with a design with simple coloring (something like a logo or an anime-type image) it will work surprisingly well with as little as a dozen palleted colors.
The thing is, I can do this manually, but it's hard to get right, and I'm just looking to save time on doing so.
Which is why I'm glad to have Farfarer's technical eye on this! Is what I'm asking possible with a script at all, or am I just shit out of luck?
edit: made a quick image that hopefully explains things better:
Imagine the sphere is my image, and I've got a grayscale sphere I want to apply those colours to. The bottom gradient is what I'd want to get, and the reason I want it as a gradient preset is because I can then easily edit it to work with whatever I'm applying it to.
Even just a way of handpicking colours from the gradient dialog, and having them inserted at the correct location according to their luminosity would be very helpful.
The method Pior mentioned is probably the easiest way.