I was linked to this thread earlier today, and I bothered to get around to writing up a tool to decode these images.
Here's a tool written in C that does it: https://github.com/SquidMan/gtdparse
You'll need to compile it yourself, and you need libGD.
Go nuts!
EDIT: If you want a re-encoder, I...