Convert JPG to XPM
Turn JPG photos 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 JPG files on the dialor turn it to pick what to do
A JPG turned into XPM source text.The result is an X11 pixmap written as C source, with a color palette.
What you get
One XPM file. It is an X11 pixmap written as C source text, with a color palette and transparency.
The JPG is turned upright by its orientation tag before the conversion. A photo that relies on that tag comes out the right way up.
What changes
XPM is X PixMap, images as C source. The picture is stored as text in a palette-based form, not as the compressed photo data a JPG holds.
JPG is a lossy format, so the XPM is made from a file that has already lost some detail. To go the other way, use XPM to JPG.
When it stops
The conversion stops with
input_corruptedwhen the file could not be parsed. No XPM is written in that case.
JPG and XPM.What each format is.
The formats
JPEG
Lossy photo compression that every device and browser opens. Small files, no transparency.
- Extensions
- .jpg .jpeg .jfif .jpe
- MIME type
- image
/jpeg - Kind
- Images
X PixMap
X PixMap, images as C source.
- Extensions
- .xpm
- MIME type
- image
/x -xpixmap - Kind
- Images
In your code.The same JPG to XPM conversion through the API, for your app or your agent.
$ cv convert photo.jpg photo.xpm$ cv convert photo.jpg photo.xpmQuestions.What people ask about JPG to XPM.
Yes. The XPM is written with a color palette and transparency.
Yes. The JPG is turned upright by its orientation tag first, and then the XPM is written.
No. This conversion has no options and gives one file.
It means the file could not be parsed. The conversion stops and no XPM is produced.