lovell / sharp

High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.
https://sharp.pixelplumbing.com
Apache License 2.0
28.98k stars 1.29k forks source link

Selective tinting of images #4223

Open Anonymous4078 opened 2 days ago

Anonymous4078 commented 2 days ago

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 commented 1 day ago

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.