TGA libraries for Python
Pillow reads and writes TGA in grayscale, palette, RGB and RGBA modes, raw or RLE-compressed, and keeps the image ID field and orientation. Libraries built on Pillow, such as imageio, read TGA through it. OpenCV (cv2.imread) does not read TGA.
- Pillow Pillow is the standard Python imaging library. How to open, convert and save TGA (Targa) files in Python, write RLE TGA, set the image ID and the origin.