Oh this is fantastic! There's actually a tool to fix the alpha in a much better way, as your method will actually ruin any alpha channel transparency on non-sharp edged pixelart.
https://github.com/PCSX2/pcsx2/blob/mast..._scaler.py
- Save this script as "texture_dump_alpha_scaler.py".
- Install Python 3.10
- Open command prompt, type "pip install pillow"
- create a file containing "python texture_dump_alpha_scaler.py scale [PATH-TO-TEXTURE-DUMP-FOLDER]" and replace [USERNAME] and [PATH-TO-TEXTURE-DUMP-FOLDER] with the folder you want to fix the files for and save it as "Texture Fix.bat"
- Throw it in the same folder as the texture_dump_alpha_scaler.py file
- Run the batch file, all your images should have their transparency fixed.
Let me know if I need to update these instructions for future folk, but that should be all you need to do.
https://github.com/PCSX2/pcsx2/blob/mast..._scaler.py
- Save this script as "texture_dump_alpha_scaler.py".
- Install Python 3.10
- Open command prompt, type "pip install pillow"
- create a file containing "python texture_dump_alpha_scaler.py scale [PATH-TO-TEXTURE-DUMP-FOLDER]" and replace [USERNAME] and [PATH-TO-TEXTURE-DUMP-FOLDER] with the folder you want to fix the files for and save it as "Texture Fix.bat"
- Throw it in the same folder as the texture_dump_alpha_scaler.py file
- Run the batch file, all your images should have their transparency fixed.
Let me know if I need to update these instructions for future folk, but that should be all you need to do.