Color Bleed Script for fixing Alpha Halo Bleed in video games with PNG files

I didn’t make this code. I specified what was needed using Google Gemini and tested/refined specifications until it worked.

Script will make any pixel with 1 or greater opacity fully opaque and then bleed the colors around the border of the image by 10 pixels. User will see the results on a new layer called ‘Solidified Result’, then user will need to change the opacity of this layer to 0 and export the png image.

The color bleed and making the layer completely transparent will fix the common halo effect caused by PNG images. PNG commonly uses black as the color of alpha areas making the unwanted halo.

Git HUB Aseprite Solidify Bleed