lovell/sharp

Enhancement: expose vips_relational operation

Open

#1,015 opened on Nov 4, 2017

 (3 comments) (0 reactions) (0 assignees)JavaScript (1,389 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (31,994 stars)
PR merge metrics
 (PR metrics pending)

Description

I want to process my images such that only pixels that are a given color (eg: RGB(0,0,100)) will appear in the final image as black, the rest should be white.

Is there any way to add a custom filter/function that is called for each pixel before it is added to the output?

Contributor guide