Inpaint from alpha value (instead of red)

hello
I have a rgba picture (png 8bits) and I would like to inpaint where the alpha channel is white.I can’t use full red as a mask because the image encode vectors representation so it may be possible to have full red pixels … how could I do that ?
thanks in advance

well this is working.sorry for the noise
gmic -i ima.png --split c -rm[1] -rm[1] -rm[1] -negative[1] --inpaint[0] [1],0

1 Like