Convert PNM to GIF

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

A GIF at the same size, in 256 colors.Your PNM image becomes one GIF with the same width and height.

  1. What you get

    One GIF file. The picture keeps its width and height, but the colors are reduced to a palette of 256 colors.

    Dithering is used to do this, so photos look grainy.

  2. Options

    Set Grayscale to turn colors into shades of gray. This often makes the file smaller.

    Set Max width or Max height to shrink a large image. The shape is kept, and anything already smaller stays as it is, so nothing is enlarged. Both accept values from 1 to 20000.

    Set Rotate to turn the result clockwise by 90, 180 or 270 degrees.

  3. Going the other way

    GIF limits each frame to 256 colors. To get a PNM file back from a GIF, use GIF to PNM.

PNM 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 · PNM

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
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 PNM to GIF conversion through the API, for your app or your agent.

terminal
$ cv convert photo.pnm photo.gif
$ cv convert photo.pnm photo.gif

Questions.What people ask about PNM to GIF.

01OF 04

No. The colors are reduced to 256 with dithering, so photos look grainy.

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

Set Max width or Max height to shrink the image. Grayscale also often makes the file smaller.

Yes. PNM covers all three, and each one converts to a GIF.

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