TGA

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
Line 56: Line 56:
  
 
== Note about .X16 files and .X32 files ==
 
== Note about .X16 files and .X32 files ==
An "image/tga" file was found in a mysterious [[X16]] file; see [https://archive.org/details/Gary_the_Swamp_Frogs_Great_Geometry_Adventure_Ohio_Distinctive_Software_2000 Gary the Swamp Frog's Great Geometry Adventure] > [https://ia600106.us.archive.org/view_archive.php?archive=/4/items/Gary_the_Swamp_Frogs_Great_Geometry_Adventure_Ohio_Distinctive_Software_2000/Gary%20the%20Swamp%20Frog%27s%20Great%20Geometry%20Adventure%20%28Ohio%20Distinctive%20Software%29%282000%29.iso files in the ISO] > [https://archive.org/download/Gary_the_Swamp_Frogs_Great_Geometry_Adventure_Ohio_Distinctive_Software_2000/Gary%20the%20Swamp%20Frog%27s%20Great%20Geometry%20Adventure%20%28Ohio%20Distinctive%20Software%29%282000%29.iso/XTRAS%2FMIXTARGA.X16 MIXTARGA.X16].
+
An "image/tga" file may have been found in a mysterious [[X16]] file; see [https://archive.org/details/Gary_the_Swamp_Frogs_Great_Geometry_Adventure_Ohio_Distinctive_Software_2000 Gary the Swamp Frog's Great Geometry Adventure] > [https://ia600106.us.archive.org/view_archive.php?archive=/4/items/Gary_the_Swamp_Frogs_Great_Geometry_Adventure_Ohio_Distinctive_Software_2000/Gary%20the%20Swamp%20Frog%27s%20Great%20Geometry%20Adventure%20%28Ohio%20Distinctive%20Software%29%282000%29.iso files in the ISO] > [https://archive.org/download/Gary_the_Swamp_Frogs_Great_Geometry_Adventure_Ohio_Distinctive_Software_2000/Gary%20the%20Swamp%20Frog%27s%20Great%20Geometry%20Adventure%20%28Ohio%20Distinctive%20Software%29%282000%29.iso/XTRAS%2FMIXTARGA.X16 MIXTARGA.X16] ("<code>TRUEVISION-XFILE.0x00</code>").
  
 
== Specifications ==
 
== Specifications ==
Line 79: Line 79:
 
* http://samples.libav.org/image-samples/TGA/
 
* http://samples.libav.org/image-samples/TGA/
 
* http://links.uwaterloo.ca/Repository/TGA/
 
* http://links.uwaterloo.ca/Repository/TGA/
* http://www.virtualservidores.com/cstrike/gfx/env/
+
* http://www.virtualservidores.com/cstrike/gfx/env/ - dead link (2020-11-30 12:31 AM GMT)
 
* [http://code.google.com/p/tombexcavator/source/browse/#svn%2Ftrunk%2Fdata%2FTGA tombexcavator samples]
 
* [http://code.google.com/p/tombexcavator/source/browse/#svn%2Ftrunk%2Fdata%2FTGA tombexcavator samples]
 
* https://telparia.com/fileFormatSamples/image/tga/
 
* https://telparia.com/fileFormatSamples/image/tga/

Revision as of 01:29, 30 November 2020

File Format
Name TGA
Ontology
Extension(s) .tga, .icb, .vda, .vst
LoCFDD fdd000179, fdd000180
PRONOM x-fmt/367, fmt/402
Released 1984

TGA (Targa) is a raster image file format developed by Truevision, Inc. (then named EPICenter) in 1984. Designed for use with MS-DOS color applications, TGA is the native format of Truevision's TARGA (Truevision Advanced Raster Graphics Adapter) boards, which were some of the first graphic cards for IBM-compatible PCs to support 24-bit RGB color encoding (sometimes termed truecolor).

Most TGA files are quite simple, but the format has the potential to be fairly complex.

TGA images are normally either uncompressed, or compressed with run-length encoding. Additional compression schemes may exist.

Contents

Format details

Files begin with an 18-byte fixed header, sometimes followed by other segments, followed by the pixel data. After the pixel data, there may be additional data elements referred to by an optional 26-byte file footer.

Variant formats

Some Truevision products used their own variant or subset of TGA: ICB, VDA, or VST. Those and other TGA variants are listed here.

ICB

  • File extension: .icb
  • Full name: Image Capture Board

VDA

  • File extension: .vda
  • Full name: Video Display Adapter

VST

  • File extension: .vst
  • Full name: TrueVista or Truevision Vista

XnView can read and write VST format. The format XnView supports seems to have more differences from TGA than are mentioned in the TGA 2.0 specification. There is an extra 18-byte header or ID field after the main header, with the signature "IGCH" at file offset 20.

PIX, BPX

  • File extensions: .pix, .bpx

Refer to Lumena PIX/BPX.

IVB

  • File extension: .ivb

No details known. IVB is a file extension or variant format that XnView claims to support.

Identification

TGA files have no signature at the beginning of the file. They can be identified fairly reliably by testing whether the first 18 bytes have sensible values for TGA format, but that is nontrivial.

Some, but not all, TGA files have a signature at the end of the file. In that case, the last 18 bytes of the file are the ASCII characters "TRUEVISION-XFILE.", followed by a NUL byte (0x00). An example of a file ending in TRUEVISION-XFILE.[0x00] is seen at telparia.com/fileFormatSamples/image/tga/ (linked below in §Sample files) > https://telparia.com/fileFormatSamples/image/tga/test.tga.

Versions

The first TGA format is now known as Original TGA Format, or (informally) TGA Version 1. It is characterized by the lack of a New TGA Format signature.

New TGA Format, or TGA Version 2.0, was released in 1989. It is characterized by a footer with a "TRUEVISION-XFILE" signature. It adds an optional "Extension Area" segment, with many standard metadata fields.

It also adds an optional "Developer Area" segment, which supports arbitrary custom data. A custom data item is tagged with a 16-bit integer identifier, similar to a TIFF tag. There does not appear to be any published list of TGA tags, though tag 20 seems to be used for Photoshop Image Resources.

Note about .X16 files and .X32 files

An "image/tga" file may have been found in a mysterious X16 file; see Gary the Swamp Frog's Great Geometry Adventure > files in the ISO > MIXTARGA.X16 ("TRUEVISION-XFILE.0x00").

Specifications

Software

TGA is widely supported. Software listed here has been semi-arbitrarily selected.

Sample files

Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox