Convert TGA to XPM

Turn TGA images into XPM. An X11 pixmap written as C source text, with a color palette and transparency.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop TGA files on the dialor turn it to pick what to do

A TGA image as C source text.The result is an XPM file with a color palette and transparency.

  1. What you get

    One XPM file, an X11 pixmap written as C source text. The image is stored with a color palette, so each color is listed once and the pixels point to it.

    Transparency is kept. Transparent areas of the picture stay transparent in the XPM.

  2. Where XPM fits

    XPM stores an image as text that a C program can include directly. Game assets in TGA become plain text files this way. For the reverse direction, use XPM to TGA.

TGA and XPM.What each format is.

The formats

From · TGA

Truevision TGA

Truevision TGA images, common in game assets.

Extensions
.tga
MIME type
image/x-tga
Kind
Images
To · XPM

X PixMap

X PixMap, images as C source.

Extensions
.xpm
MIME type
image/x-xpixmap
Kind
Images

In your code.The same TGA to XPM conversion through the API, for your app or your agent.

terminal
$ cv convert photo.tga photo.xpm
$ cv convert photo.tga photo.xpm

Questions.What people ask about TGA to XPM.

01OF 04

It is an X PixMap, an image written as C source. It holds a color palette and the pixels that refer to it.

Yes. The XPM keeps transparency.

It makes one file.

Yes. XPM to TGA does that.

More conversions.Other ways in and out of TGA and XPM.