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.
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.
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
Truevision TGA
Truevision TGA images, common in game assets.
- Extensions
- .tga
- MIME type
- image
/x -tga - Kind
- Images
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.
$ cv convert photo.tga photo.xpm$ cv convert photo.tga photo.xpmQuestions.What people ask about TGA to XPM.
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.