Convert XPM to WEBP
Turn XPM images into WEBP. Same size, with transparency when the picture has it, lossy at quality 90 unless lossless is set.
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 image as a WebP file.Same width and height, with transparency kept when the picture has it.
What you get
One WebP file at the same size as the XPM. If the picture has transparent areas, they stay transparent in the WebP.
The conversion is lossy at quality 90 unless you turn on Lossless. A lossy WebP does not keep every pixel exactly as it was.
Lossless or lossy
Turn on Lossless to encode without losing anything where the format can. The pixels match the input, and the file is much bigger than a lossy one.
Set Quality to change how much detail lossy compression keeps. It accepts 1 to 100. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
Size, color and rotation
Set Max width or Set Max height to shrink a large picture. The shape is kept, and a picture that is already smaller stays as it is, so nothing is enlarged. Both accept 1 to 20000.
Turn on Grayscale to turn colors into shades of gray, which often makes the file smaller. Set Rotate to turn the result clockwise by 90, 180 or 270 degrees.
To go the other way, use WEBP to XPM.
XPM and WEBP.What each format is, and the options this conversion takes.
- 01 · grayscale
Grayscale
Turns colors into shades of gray, which often makes the file smaller.
- 02 · lossless
Lossless
Encodes without losing anything where the format can. The result is identical to the input in pixels or samples, and much bigger than a lossy one.
- 03 · 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 - 04 · 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 - 05 · 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 90 - 06 · 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
WebP
Google's web image format with lossy and lossless modes, alpha and animation. Smaller than JPEG and PNG.
- Extensions
- .webp
- MIME type
- image
/webp - Kind
- Images
In your code.The same XPM to WEBP conversion through the API, for your app or your agent.
$ cv convert photo.xpm photo.webp$ cv convert photo.xpm photo.webpQuestions.What people ask about XPM to WEBP.
Yes. The width and height stay the same unless you set Max width or Max height, which only shrink a larger picture.
Yes, when the picture has it.
Not by default. It is lossy at quality 90. Turn on Lossless to get pixels identical to the input.
Yes. Set Rotate to 90, 180 or 270 to turn the result clockwise by that many degrees.