Save TGA textures with RLE or convert them for the web
Admin ·
A Targa texture can store repeated pixels in run-length packets. Use TGA RLE when your workflow expects Targa, or save another format when the texture will be delivered to a browser.
Save an RLE Targa and inspect the texture
Click Load example. The source is an uncompressed 64 × 40 TGA with an opaque blue top half, a partly transparent orange block and a fully transparent block below.
Choose TGA (lossless RLE) and click Compress images. The dimensions stay 64 × 40 and the saved file goes from 10,258 to 318 bytes using Targa run-length packets. The preview still shows the checkerboard through the two lower blocks.
Choose how the next format handles color and alpha
Change Output format to PNG (lossless) to keep decoded color and alpha in a browser-friendly file. WebP also carries alpha and adds a color quality setting. Choose JPEG when a white background fits the destination.
| Saved format | Treatment | Transparency |
|---|---|---|
| TGA RLE | Lossless pixel runs | Preserved |
| PNG | Lossless 8-bit samples | Preserved |
| WebP | Adjustable color quality | Supported |
| JPEG | Adjustable color quality | Composited onto white |
Truevision TGA File Format Specification 2.0W3C PNG Third EditionGoogle WebP container specification
Check the real byte counts before replacing files
Download the result and open it at full size in an editor that reads the chosen format. A detailed texture with few repeated runs can make a larger TGA RLE file. The results show the measured difference either way.
For a batch of textures, Download ZIP collects the outputs and a JSON report. Compare filenames, byte counts and dimensions before moving the new assets into your project.
Common questions
Can I use a top- or bottom-origin TGA input?
The decoder puts the input in display order before the tool saves it. The picture should face the same way after export.
Does the compressor copy the old TGA header and metadata?
It writes a new file from decoded 8-bit pixels. Keep the source if you need its original metadata and Targa extension fields.