Convert XPM to AVIF
Turn XPM images into AVIF. Same size, with transparency when the picture has it, lossy at quality 60 unless asked otherwise.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop XPM files on the dialor turn it to pick what to do
An XPM picture as an AVIF.The picture keeps its size and any transparency, at quality 60.
What you get
One AVIF file with the same width and height as the XPM. If the picture has transparency, the AVIF keeps it.
The conversion is lossy. It compresses at quality 60 unless you set another value.
Quality and size
Set Quality to a value from 1 to 100. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
Set Max width or Max height to shrink a large picture. The shape stays the same. A picture that is already narrower or shorter than the limit is left as it is, so nothing is enlarged.
Turning the picture
Set Rotate to turn the result clockwise by 90, 180 or 270 degrees.
For the other direction, see AVIF to XPM.
XPM and AVIF.What each format is, and the options this conversion takes.
- 01 · max_height
Max height (px)
Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.
1 to 20000 - 02 · max_width
Max width (px)
Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.
1 to 20000 - 03 · quality
Quality
How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
1 to 100 default 60 - 04 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270
The formats
X PixMap
X PixMap, images as C source.
- Extensions
- .xpm
- MIME type
- image
/x -xpixmap - Kind
- Images
AVIF
AV1-based images with better compression than WebP and support for HDR and alpha.
- Extensions
- .avif
- MIME type
- image
/avif - Kind
- Images
In your code.The same XPM to AVIF conversion through the API, for your app or your agent.
$ cv convert photo.xpm photo.avif$ cv convert photo.xpm photo.avifQuestions.What people ask about XPM to AVIF.
Yes, when the XPM picture has it.
Quality 60 unless you set Quality to another value from 1 to 100.
It has the same width and height unless you set Max width or Max height. Those only shrink a picture, never enlarge it.
Yes. Set Rotate to 90, 180 or 270 to turn it clockwise.