Note the white border that appears in game. There is no anti-aliasing in the original image, it is simply a pure black circle with a transparent background
In this case it seems the anti-aliasing, which is semi-transparent black in the original image, becomes simply shades of grey/white once uploaded to the website (not immediately obvious due to the default white background) creating ugly white outlines around text uploaded to the website.
Thanks Echo! @ScriptOn I’ve been using paint.net, I turned anti-aliasing off so there are no semi-transparent pixels in image 1, ONLY 0,0,0 black pixels or fully transparent ones, and yet a white border still appears.
I’m not even sure this is possible to fix in PDN. If it overwrites transparent pixels on export then you could maybe find or make your own slightly different png file type that doesn’t overwrite them, but if it actively overwrites them then it’s impossible. At best you could paint padding at opacity 1.
Just because the alpha channel is set to 1 does not mean the RGB values of the pixels becomes irrelevant.
Get the Alpha Channel plugin, if you don’t already have it, and create the appropriate mask out of black and white pixels, then apply that mask to a completely black image and see if that affects things.
As mentioned in @gkku’s link, the down/up scaling is the problem, if the UI element is resized to exactly the same size as the original image the white border disappears. Will have to get a plugin to change PDN defaulting transparent pixels to 255,255,255
Temporary workaround is to set the background as 0,0,0 with an alpha of 1 to stop Pdn from defaulting it back to 255, not sure what the performance impact of this would be though.
I looked into it a bit and you could also use GIMP:
Open your image in GIMP
In the channel list, duplicate the Alpha channel
Create a new layer under the original image. Paint your padding in this layer (if the original image is a solid color, just fill it with that color). Flatten when you’re done
Add a layer mask using the duplicated alpha channel (right click layer > Add Layer Mask > select “Channel”)
Export as PNG and make sure “Save color values from transparent pixels” is enabled
If GIMP has a filter like Solidify B from my earlier link or a way to use Photoshop plugins, ignore step 3 and use that on the original image instead.