sharp icon indicating copy to clipboard operation
sharp copied to clipboard

Selective tinting of images

Open Anonymous4078 opened this issue 1 year ago • 3 comments

Question about an existing feature

Hello, I would like it ask if we can selectively tint some specific colours of the image.

What are you trying to achieve?

I am trying to tint specific parts of an image. For example, replaced only the red colour(different shades, varying opacity) from the image with blue colour or any other colour.

When you searched for similar issues, what did you find that might be related?

Yes

Please provide a minimal, standalone code sample, without other dependencies, that demonstrates this question

Please provide sample image(s) that help explain this question

Anonymous4078 avatar Sep 27 '24 07:09 Anonymous4078

Did you see the recomb operation that allows the use of matrix multiplication?

If you still need help, please can you provide a worked example to help explain your question.

lovell avatar Sep 28 '24 08:09 lovell

Hi @lovell sorry for being unclear.

Here is one example of what I am trying to do: I am trying to change only some specific colours in the image attached. trashed-1732497410-25ad6b751415a59c33f39d73071b527f_high. Here for example I am trying to change the grey colour.

I have tried using modulate but that seems to change colour for the whole image.

Anonymous4078 avatar Oct 26 '24 09:10 Anonymous4078

Thanks for the example input file, please can you provide an example output file to help me understand what you're trying to achieve.

lovell avatar Oct 27 '24 19:10 lovell