Skip to main content
Inspiring
May 20, 2018
Answered

Covert colour table (swatch) to color lookup table?

  • May 20, 2018
  • 2 replies
  • 16729 views

Hello community,

I don't think my question is formulated correctly, but here goes the description of what I am trying to do.

I have made graphics out of old illustrations that appear greyscale (in fact they have shades of purple too). Other illustrations I have scanned have a very different colour palette (sand, beige, maroon). What I am trying to do is to take the second set of scanned illustrations and give them a matching colour palette to the first set. so they look and feel like they come from the same source.

I know how to produce a colour palette from an illustration (I switch the image to indexed colours and save a colour table .as an act file). I know that I can use the .act file to make a custom swatch for photoshop.That is handy to add new elements in colours that conform, but I can't use it to recolour my second set of illustrations in one go.

Then I though of using LUTs to recolour the second set of illustrations, but custom LUTs are exported from adjustment layers and I haven't used any adjustment layers : I just have an original illustration whose tone and colours I want to match. And the .act colour table is of no usen since it does not act as a LUT.

I also tried to use the .act to recolour the second set of illustrations directly (once again switching the image to indexed colours and loading the .act file). I do get tones from the original illustration (in other words, the .act is applied to the whole image ok) but the resulting image is garbled and full of artefacts (totally unusable).

I know I could take my second set of illustrations, make a number of adjustments until I get a similar look to the original and save the adjustments as LUTs. But that is not great because:

  1. The illustrations in that second set come from different sources. Though quite similar in tone and colour, they are still different and I would have to adjust the image after the LUT is applied in almost every single case. Not a solution for batch processing.
  2. The nearest intuitive correction is to convert to greyscale. If I do that, however, I quickly realise that I lose all the subtlety from the original image, because I get none of the pale shades of purple that actually make up the original colour palette. That is why I was somehow trying to apply the whole colour palette of the original image to the other illustrations.

So I have yet to zero in on a workflow that allows me to do what I want. Maybe it's a naive endeavour, but if it is doable, I would really value your suggestions.

Best regards

Chris

This topic has been closed for replies.
Correct answer davescm

I tried the script and I am getting lost. I couldn't get the script to do something rational using the formulas (replicating some of the formulas from the site exactly (they worked but did not produce any kind of colour map in the preview). I then loaded the colour map .act file I produced for the first image attached here 5I don't think I can attach the act file though, sorry). Then I produced a curves .map in amp format from the script. I applied it to the second image, also attached (this is a random selection out of a very large library of illustrations I am working on). The results did not work out (I attach the resulting image too), though kind of funky...


Hi

Gradient map sampled from your first image and applied to the second

Dave

2 replies

Jeff Arola
Community Expert
Community Expert
May 20, 2018

You might also take a look at this Create Color Ramp script.

http://www.tonton-pixel.com/scripts/creative-scripts/create-color-ramp/index.html

Inspiring
May 20, 2018

Thank you Jeff. New technique for me/ I'll take a look and report back.

Inspiring
May 20, 2018

I tried the script and I am getting lost. I couldn't get the script to do something rational using the formulas (replicating some of the formulas from the site exactly (they worked but did not produce any kind of colour map in the preview). I then loaded the colour map .act file I produced for the first image attached here 5I don't think I can attach the act file though, sorry). Then I produced a curves .map in amp format from the script. I applied it to the second image, also attached (this is a random selection out of a very large library of illustrations I am working on). The results did not work out (I attach the resulting image too), though kind of funky...

davescm
Community Expert
Community Expert
May 20, 2018

Have you tried a gradient map adjustment layer - setting the gradient colours to match the first illustration

Dave

Inspiring
May 20, 2018

Hi Dave,

Thank you for responding on a Sunday!

No, I hadn't thought of that, but I can't apply a whole colour swatch to a gradient (I don't think). Also, that wouldn't target colours in an organic manner, meaning there is no methods by which colours are overlaid other than the gradient itself.

davescm
Community Expert
Community Expert
May 20, 2018

Hi

The gradient map adjustment layer will map the luminosity values of the base image onto the gradient which can be complex.

However the best way to advise would be to see the image in you want to retain the colour and the image you want to match to it (or a section of each if sharing the whole images would be a problem)

Dave