Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add TGA v2.0 footer in TGA type file on export #1946
Save exported TGA file as v2.0 TGA file by appending TGA v2.0 footer at the end of the file as recommended by following:
This was causing issue (bjorn/tiled#2013) when trying to load .TGA file exported from Aseprite into Tiled Map Editor (https://www.mapeditor.org/) because it uses QT library to load images, and QT doesn't support non-TrueVision 2.0 files (https://code.woboq.org/qt5/qtimageformats/src/plugins/imageformats/tga/qtgafile.cpp.html#186)
TGA v2.0 format is backward compatible and it doesn't affect applications that expect original TGA format file.
I have tested the fix myself, it fixes the issue (bjorn/tiled#2013) and everything else is working as expected.