how make all single color pixels with fuzz which partial transparent to transparent or not transparent? #6908
-
ImageMagick version7.1.1-21 Operating system, version and so onWindows 11 Descriptioni need to make all partial transparent orange pixel , with fuzz 20% , transparent. or not transparent if easier so change opacity to 0 or 100 for color hex #FF6D2D only and all other fuzzy color wich match -fuzz 20% how to do ?? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Please post an example image. Sorry, I do not fully understand your question. You have an image with some transparency. You want to change one color with some tolerance (fuzz) that is opaque to transparence. Is this correct? If not, please explain further. |
Beta Was this translation helpful? Give feedback.
-
fmw42's solution won't work because
Note that this processes only the alpha channel. This is difficult to test without an example image. @markonop93, please supply an example input. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Numbers are not the same as colours.
|
Beta Was this translation helpful? Give feedback.
fmw42's solution won't work because
-fx
is not sensitive to-fuzz
, and becauseu.a==0
doesn't set u.a to zero, it merely tests whether u.a is zero. Instead, I suggest:Note that this processes only the alpha channel.
This is difficult to test without an example image. @markonop93, please supply an example input.