Convert PNG to XPM
Turn PNG 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 PNG files on the dialor turn it to pick what to do
A PNG as C source code.The picture becomes an XPM text file with a color palette and transparency.
What you get
One XPM file. XPM is the X PixMap format, which stores an image as C source text. The file you get is an X11 pixmap written that way, with a color palette.
Transparency is kept, so areas that are see-through in the PNG stay see-through in the XPM.
What changes
PNG holds lossless raster images with an alpha channel. XPM describes the picture with a color palette instead, and it is text, not a binary image file. The result is a different kind of file, even though it shows the same picture.
This conversion has no options to set. You pick the PNG and get one XPM back.
When it stops
A PNG that cannot be parsed stops the conversion with
input_corrupted. This code means the file could not be parsed.To go the other way, use XPM to PNG.
PNG and XPM.What each format is.
The formats
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
X PixMap
X PixMap, images as C source.
- Extensions
- .xpm
- MIME type
- image
/x -xpixmap - Kind
- Images
In your code.The same PNG to XPM conversion through the API, for your app or your agent.
$ cv convert photo.png photo.xpm$ cv convert photo.png photo.xpmQuestions.What people ask about PNG to XPM.
It is an X PixMap, an image written as C source text. It uses a color palette to describe the picture.
Yes. The XPM is written with transparency, so see-through areas of the PNG stay see-through.
No. This conversion has no options.
The file could not be parsed. The conversion stops with input_corrupted when that happens.