Convert AVIF to XPM
Turn AVIF 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 AVIF files on the dialor turn it to pick what to do
An AVIF image as XPM source text.The result is a C source file with a color palette and transparency.
What you get
One XPM file. XPM is an X11 pixmap written as C source text, so you can open it in a text editor and read the palette and the pixel rows.
The file has a color palette, and transparent areas of the AVIF stay transparent.
Animated AVIF files
If the AVIF is an animation, the XPM holds only its first frame. The other frames are dropped, because the output is a single still image.
Going back
To turn an XPM back into AVIF, use XPM to AVIF. For other XPM conversions, see every XPM conversion.
AVIF and XPM.What each format is.
The formats
AVIF
AV1-based images with better compression than WebP and support for HDR and alpha.
- Extensions
- .avif
- MIME type
- image
/avif - Kind
- Images
X PixMap
X PixMap, images as C source.
- Extensions
- .xpm
- MIME type
- image
/x -xpixmap - Kind
- Images
In your code.The same AVIF to XPM conversion through the API, for your app or your agent.
$ cv convert photo.avif photo.xpm$ cv convert photo.avif photo.xpmQuestions.What people ask about AVIF to XPM.
Yes. Transparent areas in the AVIF stay transparent in the XPM.
Only the first frame is kept. The result is one XPM file.
Yes. XPM is image data written as C source text, so the palette and pixels are plain text.
No. This conversion has no options, and each AVIF becomes one XPM file.