En TGA-fil er en fil, der er gemt i rastergrafik-formatet, der er designet af Truevision. Det understøtter 8, 16, 24 eller 32 bit pr. pixel med maksimalt 24 bit for RGB farver og 8 bit alphakanal. TGA-filer bruges til forskellige typer billeder, f.eks. digitale fotos og teksturer, som 3D-videospil henviser til.
TGA-fil åben i Apple Preview 10.1
Targa-formatet, som står for Truevision Advanced Raster Graphics Adapter, blev udviklet af Truevision (nu Avid Technology) i 1984 til brug med de første videosoftwareprogrammer. Det oprindelige format bestod af 2 områder:
- TGA File Header
- Image/Color Map Data
While these two sections were included in the original 1984 specification of the Targa format, "Developer Area," "Extension Area," and "TGA File Footer" sections were added in 1989. This specification is known as the "New TGA Format" and consists of the following 5 areas:
- TGA File Header
- Image/ColorMap Data
- Developer Area
- Extension Area
- TGA File Footer
Besides the three new sections of the image format, Truevision also introduced several new extensions to the Targa format in 1989 to meet the needs of graphics professionals. Examples of the extra extensions include:
- Date and time the file was created
- Author name and comments
- Alpha channel type
- Pixel aspect ratio
- Gamma value
- A scaled-down postage stamp copy of the image (a "thumbnail" image)