Simple data, optional RLE
A TGA file opens with a compact header giving the image type, dimensions and bits per pixel, then stores the pixels directly. Colour is usually 24-bit RGB or 32-bit RGBA, the extra eight bits providing per-pixel transparency. Compression is optional and limited to run-length encoding, which collapses consecutive identical pixels and so helps flat artwork far more than photographs. Because the encoding is so plain, a TGA decoder fits in a few dozen lines of code, which is part of why the format stuck around in tooling.
The format does carry one small foot-gun: the image can be stored top-to-bottom or bottom-to-top depending on an orientation flag, and software that ignores it ends up with a vertically flipped picture.
Why game artists still use it
TGA hit a sweet spot for real-time graphics: lossless pixels, a reliable alpha channel and dead-simple loading. Game engines and 3D packages adopted it for texture maps — diffuse, normal, specular and mask textures — where exact values matter and JPEG’s artefacts would be visible on a surface. Even now, with newer GPU formats available, many texturing workflows author in TGA because it is predictable and every tool understands it.
Strengths
- Lossless pixels with a clean 8-bit alpha channel for textures.
- Extremely simple to decode, so support is near-universal in tools.
- Optional RLE shrinks flat artwork without any quality loss.
Limitations
- RLE does little for photographs, leaving files large.
- The orientation flag causes flipped images in careless readers.
- Superseded for delivery by formats with far better compression.
When to use TGA
Pick TGA for game and 3D texture authoring where you need lossless colour and dependable alpha, and you value simple, universally readable files over small ones.
TGA FAQ
- Does TGA support transparency?
- Yes. The 32-bit form stores an eight-bit alpha channel alongside red, green and blue, giving smooth per-pixel transparency. This is a big reason it remains popular for game textures and overlays.
- Is TGA still worth using today?
- For final delivery, formats like PNG or modern GPU textures are usually better, but TGA stays relevant in 3D and game art pipelines that prize lossless data and trivial decoding. Many texturing tools still default to it.
- Why does my TGA look upside down?
- TGA records whether rows run top-down or bottom-up in an orientation byte, and software that ignores that flag renders the image flipped. Re-saving through a tool that respects the flag, or converting to PNG, fixes it.