Convert PNM to XBM
Turn PNM images into XBM. An X11 bitmap in black and white only, written as C source text.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop PNM files on the dialor turn it to pick what to do
A black and white bitmap as C source.The result is one XBM file. It is an X11 bitmap written as C source text.
What you get
One XBM file from your PNM image. XBM is a monochrome format, so the bitmap is black and white only. The file is C source text.
PNM covers PBM, PGM and PPM files, and any of them can be the input.
What changes
XBM holds only two tones. Shades of gray and colors from a PGM or PPM image do not carry over as they are, because the output is black and white only.
Going the other way
To turn an XBM file back into a PNM image, use XBM to PNM. For other conversions of this format, see every XBM conversion.
PNM and XBM.What each format is.
The formats
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
X BitMap
X BitMap, monochrome images as C source.
- Extensions
- .xbm
- MIME type
- image
/x -xbitmap - Kind
- Images
In your code.The same PNM to XBM conversion through the API, for your app or your agent.
$ cv convert photo.pnm photo.xbm$ cv convert photo.pnm photo.xbmQuestions.What people ask about PNM to XBM.
It is an X11 bitmap in black and white only. The file is written as C source text.
Yes. PPM is one of the PNM formats. The XBM output is black and white only, so the colors are not kept.
Yes. PNM covers PBM, PGM and PPM, and each of them can be converted to XBM.
One file.