Convert XPM to PNM

Turn XPM images into PNM. A Netpbm picture with the same pixels, uncompressed, so the file is large.

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 plain Netpbm file.The pixels stay the same. The file is uncompressed and large.

  1. What you get

    One PNM file with the same pixels as the XPM. XPM stores an image as C source code, and PNM is one of the simplest raster formats, covering PBM, PGM and PPM.

    The picture is not compressed, so the file is large.

  2. What it leaves behind

    Transparency is dropped. If the XPM has transparent areas, the PNM has no way to keep them.

XPM and PNM.What each format is.

The formats

From · XPM

X PixMap

X PixMap, images as C source.

Extensions
.xpm
MIME type
image/x-xpixmap
Kind
Images
To · PNM

Portable Anymap

Portable anymap images, the simplest raster format: PBM, PGM and PPM.

Extensions
.pnm .ppm .pgm .pbm
MIME type
image/x-portable-anymap
Kind
Images

In your code.The same XPM to PNM conversion through the API, for your app or your agent.

terminal
$ cv convert photo.xpm photo.pnm
$ cv convert photo.xpm photo.pnm

Questions.What people ask about XPM to PNM.

01OF 04

No. The PNM has the same pixels as the XPM.

PNM is uncompressed. The file is large because the picture is stored without compression.

No. Transparency is dropped in the PNM.

Yes. PNM to XPM converts in the other direction.

More conversions.Other ways in and out of XPM and PNM.