TEX

TEX is a file format for compressing graphic image in Don't Starve. It is a derivative of DXT (S3 Texture Compression) file format.

TEX Decompression
To read TEX file, you are required to decompress TEX into any visible image format (usually PNG).

Here is the tool provided by Matt (Don't Starve developer), TEXTool.