aaaaaa123456789 / libplum

Image-handling library that allows reading and writing common image file formats
The Unlicense
11 stars 6 forks source link

Implement Truevision TGA format support #11

Open Rangi42 opened 1 year ago

Rangi42 commented 1 year ago

Truevision TGA or TARGA files are a relatively simple raster image format, comparable to BMP.

I wanted to add TGA support, but it was hard to find good information about it like a spec

So far the closest I can find to a spec is http://www.paulbourke.net/dataformats/tga/.

(I was reminded that we previously mentioned TGA support after coming across rdopng, which supports TGA and QOI.)

aaaaaa123456789 commented 1 year ago

I was looking into this a while ago, but I couldn't find any complete spec, just partial ones like this one. I'd have to do more research.

Rangi42 commented 1 year ago

What about this? https://www.loc.gov/preservation/digital/formats/fdd/fdd000180.shtml It links to https://www.dca.fee.unicamp.br/~martino/disciplinas/ea978/tgaffs.pdf, an official spec from Truevision.

aaaaaa123456789 commented 1 year ago

Seems good enough from a cursory glance.