godot-unpacker now contains functionality to convert .stex files directly to .png files, and as such this script is now made redundant and as such this repo has now been archived.
This script converts Godot stex files to standard png files. This is mainly used in combination with a tool that unpacks Godot .pck files like godot-unpacker.
Tested on Python 3 only
move the .stex file in the same directory as script and run:
python godot-stex-to-png.py input.stex
.stex files are simply .png files with an extra 32 bits of header data, as detailed here:
As such, this tool was created to further automate the process by just trimming said 32 bits of data from the .stex file using python
If you wish to run the script on all files in a folder, you could consider using unix.