Why do programs use the TGA format?

5

1

I seen many applications (such as warcraft) dump images as TGA. Why?

user3109

Posted 2011-07-02T21:04:42.723

Reputation:

Question was closed 2011-08-01T01:07:20.570

1I'd say historic reasons -- TGA has always been used for textures in game engines, so that's why it seems like an easy choice to use the same format for saving (without an additional need for JPEG/PNG libraries). I don't see the real problem or question though, and I also guess you'd need a Blizzard developer to tell you the real* reason. Therefore voting to close as not constructive. – slhck – 2011-07-02T21:25:22.683

Answers

6

TGA or Targa image file format was one of the most ubiquitous and relatively early formats that supported alpha transparency and generally was used by the games industry for sprite data. In addition it also supported RLE (run-length encoding), which is very simple way of compacting repetitive data and can be useful for some sprite data.

The file format specification was fairly linear and also importantly wasn't encumbered by patents, so this format is trusted for its ease of implementation, features and lack of legal issues associated with software patents.

Ruairi Fullam

Posted 2011-07-02T21:04:42.723

Reputation: 2 284

I always assumed it was patented (since i saw on wiki that it was owned by a company) – None – 2011-07-03T06:13:06.500

Thankfully not, it's the format that got away! That said, there were probably many other formats that would have been considered prior art. Such things are ignored in today's patent-happy climate. – Ruairi Fullam – 2011-07-03T18:28:57.887