Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selective tinting of images #4223

Open
Anonymous4078 opened this issue Sep 27, 2024 · 3 comments
Open

Selective tinting of images #4223

Anonymous4078 opened this issue Sep 27, 2024 · 3 comments
Labels

Comments

@Anonymous4078
Copy link

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

@lovell
Copy link
Owner

lovell commented Sep 28, 2024

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.

@Anonymous4078
Copy link
Author

Anonymous4078 commented Oct 26, 2024

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.

@lovell
Copy link
Owner

lovell commented Oct 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants