tgar 1.0.0

Simplest TGA library
Documentation
  • Coverage
  • 55.56%
    5 out of 9 items documented0 out of 4 items with examples
  • Size
  • Source code size: 201.49 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 413.38 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • drewcrawford

tgar

logo

This is the world's simplest way to write images from Rust in the TGA format. It is one single file and has no dependencies.

If you are looking for a drop-dead simple way to write images to open in your image editor, and have a tab open on BMP and TIFF formats right now trying to figure out which one you can emit using a for loop, this is the crate you are looking for. TGA is a widely supported but trivial file format. This library supports BGRA 32-bit uncompressed images only, a popular and trivial subset.

I designed this library to dump GPU textures for debugging purposes, but it is suitable for a wide variety of applications.