Convert XPM to JPG
Turn XPM images into JPEG. Same size at quality 90 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
A JPG made from your XPM image.The picture keeps its size and is saved at quality 90. Transparent areas become white.
What you get
One JPG file with the same width and height as the XPM. It is saved at quality 90 unless you set another value.
JPG is lossy compression that every device and browser opens, and it has no transparency.
What changes
JPG cannot be transparent, so transparent areas are filled with white. Set Background to another color, written as #RRGGBB, to fill them with that color instead.
Because JPG compresses with loss, some detail is not kept exactly as it was in the XPM.
Options
Set Quality 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 image while keeping its shape. Smaller images stay as they are, so nothing is enlarged. Turn on Grayscale to turn colors into shades of gray, which often makes the file smaller. Set Rotate to turn the result by 90, 180 or 270 degrees clockwise.
When it stops
If the XPM cannot be parsed, the conversion stops with
input_corrupted.To go the other way, use JPG to XPM.
XPM and JPG.What each format is, and the options this conversion takes.
- 01 · background
Background
The color that fills transparent areas, for formats such as JPEG that cannot be transparent. Write it as #RRGGBB, such as #ffffff for white.
default #ffffff - 02 · grayscale
Grayscale
Turns colors into shades of gray, which often makes the file smaller.
- 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
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
In your code.The same XPM to JPG conversion through the API, for your app or your agent.
$ cv convert photo.xpm photo.jpg$ cv convert photo.xpm photo.jpgQuestions.What people ask about XPM to JPG.
Yes. The width and height stay the same unless you set Max width or Max height. Those only shrink an image that is larger than the value.
They become white. Set Background to a color such as #000000 to fill them with that color instead.
Lower Quality, or turn on Grayscale, which often makes the file smaller. Set Max width or Max height to shrink a large image.
The XPM file could not be parsed. The conversion stops with input_corrupted when that happens.