Clone wiki

libtga / Home

Welcome

LibTGA -- general library for reading / writing Truevision TGA(tm) files

Library was written to improve my skills in writing libraries ;)

Features

Full reading support for:

  • Compressed / uncompressed images
  • Black and White / Grey-scale images (1-bit and 8-bit)
  • Paletted images (8-bit, 15-bit, 16-bit, 24-bit and 32-bit elements)
  • Truecolor images (15-bit, 16-bit, 24-bit and 32-bit)
  • Extended information (TGA 2.0)
  • Developers tags (TGA 2.0)

Full writing support for:

  • Compressed / uncompressed images
  • Grey-scale images (8-bit)
  • Paletted images (8-bit, 15-bit, 16-bit, 24-bit and 32-bit elements)
  • Truecolor images (15-bit, 16-bit, 24-bit and 32-bit)
  • Extended information (TGA 2.0)

Powerful customizable transformations during reading / writing:

  • Any pixel conversions (B&W <-> Grey <-> BGR)
  • Un-paletting images
  • RGB channels swapping (BGR <-> RGB)
  • Orientation change (vertical flipping now, horizontal will come soon)

Other features:

  • Lightweight and fast
  • Support for reading / writing files and supports custom I/O callbacks
  • Fully-portable
  • Written in pure C
  • Free zlib/libpng license

Quick start

$ hg clone https://bitbucket.org/iOrange/libtga
...
$ hg pull --update # to pull changes and update

More information about Truevision TGA(tm) format

Updated