What Is TGA (Targa)?
TGA — short for Truevision Advanced Raster Graphics Adapter — is a raster image format created by Truevision (AT&T) in 1984. The name "Targa" comes from the hardware card the format was originally designed for. It was one of the first formats capable of storing high-color and true-color images at a time when the VGA and SVGA era was just beginning, making it the de facto standard for professional graphics throughout the late 1980s and 1990s.
Despite being over four decades old, TGA remains a living format. It is still mandatory in many game engine pipelines, required by tools, and present in virtually every VFX studio's asset management system.
Technical Specifications
TGA supports the following color depths:
- 8-bit — indexed color (palette-based)
- 16-bit — high color (5 bits per channel + 1 bit alpha)
- 24-bit — true color (8 bits per channel, RGB, no alpha)
- 32-bit — true color with full alpha (8 bits per channel, RGBA)
Key technical characteristics:
- Byte order: Little-endian (x86-native), which contributed to its dominance during the PC graphics era.
- Compression: Optional RLE (Run-Length Encoding) compression is supported. It is lossless and works best on images with large uniform color areas (like flat textures). Unlike PNG's deflate compression, TGA's RLE is minimal and fast to decode.
- Alpha channel: Available only in 32-bit TGA files. The alpha channel is 8 bits, providing 256 levels of transparency.
- TGA 2.0: In 1989, a revised specification added a footer section at the end of the file containing developer area metadata, thumbnail images, and color correction tables. Most software ignores the footer, but it is part of the standard.
- No ICC profile support: TGA does not store ICC color profiles or EXIF metadata, which is a notable limitation compared to PNG or TIFF.
Where TGA Is Used Today
TGA has survived far beyond its intended era because game engines adopted it early and never fully moved away:
- Unreal Engine — TGA is a supported texture import format and is commonly used for diffuse maps, normal maps, and alpha-channel masks.
- Unity — Unity's texture importer accepts TGA files directly, and many asset store resources are distributed as TGA.
- Blender — Blender's bake system defaults to TGA for baked texture output in older project templates.
- 3ds Max and Maya — Both Autodesk tools have long used TGA as a standard texture export format.
- id Software engines — Quake, Quake II, Doom 3, and their derivatives used TGA extensively for skin and texture data. Modding communities for these games still work in TGA.
- VFX pipelines — TGA appears in compositing pipelines (Nuke, Flame) as a simple uncompressed frame format for image sequences.
TGA vs PNG: Comparison
| Feature | TGA | PNG |
|---|---|---|
| Alpha channel | Yes (32-bit) | Yes |
| Lossless compression | Optional RLE | Deflate (always) |
| Browser support | No | Yes (universal) |
| Game engine support | Excellent (native) | Good (varies) |
| File size (typical) | Larger (no compression) | Smaller |
| Color depth | 8/16/24/32-bit | 8/16/24/32/48-bit |
| ICC color profile | No | Yes |
| EXIF metadata | No | Limited |
| Mipmap storage | No | No |
Summary: PNG is technically superior to TGA in almost every dimension for general-purpose use. TGA's advantage is its deep integration into legacy game engine and VFX workflows.
Converting TGA Files
Using ImageMagick
# Single file
convert texture.tga texture.png
# Batch convert all TGA files in a folder
for f in *.tga; do convert "$f" "${f%.tga}.png"; done
Using FFmpeg
ffmpeg -i texture.tga texture.png
FFmpeg preserves the alpha channel from 32-bit TGA files automatically.
Using GIMP
Open the TGA file via File > Open, then export via File > Export As and choose PNG. GIMP will prompt you about alpha channel handling if the TGA is 32-bit.
When to Keep TGA vs Convert to PNG
Keep TGA when:
- Your game engine pipeline explicitly expects TGA (e.g., an Unreal project where all artists deliver
.tgafiles) - You are modding a game (Quake, Doom, Half-Life) whose toolchain requires TGA
- You need to exchange textures with colleagues whose tools default to TGA
Convert to PNG when:
- You are sharing textures on the web or via a download link
- You need the smallest lossless file size
- You want ICC color profile support
- The receiving pipeline is agnostic about format
Limitations to Know
- No ICC profiles — TGA cannot embed color space information. If you need consistent color reproduction across devices, PNG or TIFF is better.
- No EXIF metadata — No capture date, camera info, GPS, or similar data can be stored.
- No native browser support — Browsers cannot display TGA files. You must convert to PNG, JPEG, or WebP before using textures on the web.
- RLE compression is weak — On photographic content with many color variations, TGA files with RLE can sometimes be larger than without it.
Conclusion
TGA is a format that time forgot — and also a format that the game industry refuses to let die. Its simplicity, wide engine support, and 32-bit alpha capability keep it relevant in 3D and game development workflows decades after more capable formats became available. If you work with game engines or 3D tools, you will encounter TGA regularly. For everything else — web publishing, sharing, archival — converting to PNG is the right choice, and KaijuConverter makes that a single click.