I want to make my own leaf textures for trees, but if I just make a PNG with transparent background it gets a weird white edge. I found that usually they use this effect with an alpha mask to get rid of that issue.
I found the name of the technique is called "Edge Padding" or even "Edge dilate". It creates an offset of the border of the image and expands the pixels outwards creating a "frame" around it.