Convert BMP to XPM

Turn BMP images into XPM. An X11 pixmap written as C source text, with a color palette and transparency.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop BMP files on the dialor turn it to pick what to do

A BMP turned into C source.The result is an XPM file: text that a C program can include.

  1. What you get

    One XPM file, an X11 pixmap written as C source text. The image is stored as a color palette plus the pixels that refer to it, so you can open the file in a text editor.

    Transparency is part of the result. XPM can mark areas as transparent, so the file carries that information.

  2. What changes

    A BMP holds its pixels directly, and XPM describes them as text with a palette. The file is a different kind of thing from the original, even though it shows the same picture.

    The conversion has no options to set. You give it a BMP and get one XPM back.

  3. Going the other way

    To turn an XPM back into a bitmap, use XPM to BMP. Other BMP conversions are listed under every BMP conversion.

BMP and XPM.What each format is.

The formats

From · BMP

Bitmap

Windows bitmap. Uncompressed pixels, large files, read by everything.

Extensions
.bmp .dib
MIME type
image/bmp
Kind
Images
To · XPM

X PixMap

X PixMap, images as C source.

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

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

terminal
$ cv convert photo.bmp photo.xpm
$ cv convert photo.bmp photo.xpm

Questions.What people ask about BMP to XPM.

01OF 04

XPM is X PixMap, a format that stores an image as C source. It is used with X11.

Yes. The XPM is written with a color palette and transparency.

Yes. The file is C source text, so a text editor shows it as readable code.

No. The conversion has no options, and it produces one file.

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