Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for professional graphic designers and non-designers trying to do their own graphic design. It's 100% free, no registration required.

Is it possible to compress/degrade a .tga image to a specific file size/range? I read about RLE compression, and from what else I've read, this seems to be the only way to compress it. Other than that I'm at a loss/ My searches have so far turned up nothing useful.

share|improve this question
    
.tga is also known as Targa, it is simple and dumb, but popular because it is patent free and easy to use. –  Steve-o Aug 24 '11 at 3:18
add comment

1 Answer

RLE compression option is either On or Off, you can't control how good it works.

Although if you need to get best results you could prepare your image and reduce color count in it (e.g. by converting it to paletted image and back to 32bit). When there are fewer different colors in image, it allows compression to work better (by finding identical patterns in previous compressed data). Fewer colors -> more repeating patterns -> better compression -> smaller image size in result.

Another option to make compressed image size smaller - delete RGB data in areas that are completely transparent. That will allow compression to be more effective as well.

share|improve this answer
    
Basically anything more complicated than RLE, i.e. Huffman would have been covered by patents like GIF, JBIG, JPEG2000, etc. –  Steve-o Aug 24 '11 at 3:24
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.