Convert JPG to XBM

Turn JPG photos 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 JPG files on the dialor turn it to pick what to do

A JPG as black and white C source.The result is an XBM bitmap with two colors only, written as text.

  1. What you get

    One XBM file. It is an X11 bitmap in black and white only, written as C source text.

    The JPG is turned upright by its orientation tag first, so a photo taken sideways comes out the right way up.

  2. What it changes

    XBM has no gray or color. Every pixel of the JPG ends up black or white, so the output is a monochrome version of the picture, not a copy of it.

    This conversion has no options. You cannot set a size, a threshold or a background.

  3. When it fails

    If the JPG cannot be parsed, the conversion stops with input_corrupted. No XBM is written in that case.

    To go the other way, use XBM to JPG.

JPG and XBM.What each format is.

The formats

From · JPG

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
To · XBM

X BitMap

X BitMap, monochrome images as C source.

Extensions
.xbm
MIME type
image/x-xbitmap
Kind
Images

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

terminal
$ cv convert photo.jpg photo.xbm
$ cv convert photo.jpg photo.xbm

Questions.What people ask about JPG to XBM.

01OF 04

No. XBM holds black and white only, so every pixel becomes one or the other.

The XBM format is monochrome images written as C source. The file is text that a C program can include.

Yes. The JPG is turned upright by its orientation tag before it is converted.

No. This conversion has no options.

More conversions.Other ways in and out of JPG and XBM.