Convert XCF to XPM

Turn XCF images into XPM. The visible layers are combined the way GIMP shows them, with their blend modes, opacity, masks and groups.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

A GIMP image as XPM source.The visible layers are merged into one picture, written as C source text.

  1. What you get

    One XPM file, an X11 pixmap written as C source text. It holds a color palette and supports transparency.

    The layers are combined the way GIMP shows them. Blend modes, opacity, masks and groups are applied, and the result is a single flat image.

  2. What it leaves behind

    The layers do not survive. XPM holds one image, so the layered structure of the XCF is not kept in the output. Layers that are hidden in GIMP are not part of the picture.

    To go the other way, use XPM to XCF.

  3. Unsupported files

    Files with active non-destructive filters from GIMP 3 are not supported. Only GIMP can apply those filters, so the conversion cannot reproduce them.

XCF and XPM.What each format is.

The formats

From · XCF

GIMP Image

GIMP's native image format with layers.

Extensions
.xcf
MIME type
image/x-xcf
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 XCF to XPM conversion through the API, for your app or your agent.

terminal
$ cv convert photo.xcf photo.xpm
$ cv convert photo.xcf photo.xpm

Questions.What people ask about XCF to XPM.

01OF 04

No. The visible layers are combined into one image, with blend modes, opacity, masks and groups applied as GIMP shows them.

Yes. The XPM output supports transparency, along with a color palette.

It is an X11 pixmap, an image written as C source text.

Not if the filters are active and non-destructive. Only GIMP can apply them, so these files are not supported.

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