Convert XPM to GIF

Turn XPM images into GIF. Same size, reduced to a palette of 256 colors with dithering, so photos look grainy.

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 GIF.The picture keeps its size but is cut down to 256 colors.

  1. What you get

    One GIF file with the same width and height as the XPM. GIF holds indexed-color images, so the colors are reduced to a palette of 256 colors.

    Dithering is used to approximate the colors that do not fit in the palette. Photos look grainy as a result.

  2. What changes

    Transparency is kept, but each pixel is either fully clear or fully solid. Soft or partly see-through edges do not carry over.

  3. Options

    Set Max width or Max height to shrink a large image. The shape stays the same, and an image that is already smaller is not enlarged.

    Turn on Grayscale to change colors into shades of gray, which often makes the file smaller. Set Rotate to turn the result clockwise by 90, 180 or 270 degrees.

    To go the other way, use GIF to XPM.

XPM and GIF.What each format is, and the options this conversion takes.

  1. 01 · grayscale

    Grayscale

    Turns colors into shades of gray, which often makes the file smaller.

  2. 02 · max_height

    Max height (px)

    Shrinks anything taller than this, keeping its shape. Anything shorter stays as it is, so nothing is ever enlarged.

    1 to 20000
  3. 03 · max_width

    Max width (px)

    Shrinks anything wider than this, keeping its shape. Anything narrower stays as it is, so nothing is ever enlarged.

    1 to 20000
  4. 04 · rotate

    Rotate

    Turns the result clockwise by a quarter, a half or three quarters.

    90 · 180 · 270

The formats

From · XPM

X PixMap

X PixMap, images as C source.

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

GIF

Indexed-color images with simple animation. Limited to 256 colors per frame.

Extensions
.gif
MIME type
image/gif
Kind
Images

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

terminal
$ cv convert photo.xpm photo.gif
$ cv convert photo.xpm photo.gif

Questions.What people ask about XPM to GIF.

01OF 04

Yes. The width and height stay the same unless you set Max width or Max height.

GIF is limited to 256 colors, so the colors are reduced to a palette and dithered. This shows most in photos.

Yes. Each pixel ends up either fully clear or fully solid, with nothing in between.

Turn on Grayscale, which often makes the file smaller. Setting Max width or Max height shrinks images larger than the limit.

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