You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, Thank you for the library.
I have png images with alpha channels. I want to add contours to these images and get a result like the examples I will share below, but I couldn't find how to do it. Additionally I should be able to control the background color.
The text was updated successfully, but these errors were encountered:
I think this should move to a discussion rather than an issue.
I'm no expert but I believe the approach you can take is this:
Take your alpha band and dilate it. Dilation will add edge pixels to represent the contour.
Take a copy of this dilated alpha band and colour it any way you want
Compose the base image over the coloured contour image
Add the dilated alpha band to re-establish the transparency.
I can see in your examples you have both a white border and then a feathered dark edge. You can use variations of the above to use more composed layers to get that effect. For example, to get the feathered edge, you can duplicate the dilated alpha band again and use a gaussian blur on it.
I'm sure John and Kleis can be more precise but they are in difference time zones - please take the above as a possible path from someone who is also learning how to do this kind of thing.
Hello, Thank you for the library.
I have png images with alpha channels. I want to add contours to these images and get a result like the examples I will share below, but I couldn't find how to do it. Additionally I should be able to control the background color.
The text was updated successfully, but these errors were encountered: