Saving uncompressed TGA

(this image has nothing to do with this post. Just something I’m working on)

Alas RLE compression isn’t supported everywhere. Can’t expect the earth, it’s only old enough that I can’t find when it was invented. But onto the problem.

I needed to dump out uncompressed tga’s from processing. Turns out this was an old processing feature that was upgraded to RLE. Because I’m still living in the dark ages, Toxi pointed me towards the original code that he wrote for uncompressed tga saving. Just so I don’t lose it and maybe other people are looking for something like this. Here is the slapped together bit of code.

The zipped up sketch