This is a small Python script for reading .tgx files from the game Stronghold 1. The tgx files contain images in a special binary format. I was inspired by the great software from PodeCaradox and the Stronghold Wiki. The only dependencies of the script are numpy and matplotlib. Both are used to plot the result. You can comment out the corresponding lines if you only want to extract a list of RGBA pixel colors.
Stronghold is a great game. You should try it if you've never played it before.
This program is released under the CC BY-SA 4.0 license.