Convert PFM to GIF

Turn PFM images into GIF. Same size, with values from 0 to 1 shown as black to white without a brightness curve and reduced to a palette of 256 colors with dithering.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

HDR float maps as 256-color GIFs.The GIF keeps the size of the PFM. Values from 0 to 1 become black to white.

  1. What you get

    One GIF at the same width and height as the PFM. Values from 0 to 1 are shown as black to white without a brightness curve.

    The colors are reduced to a palette of 256 colors with dithering, because GIF holds at most 256 colors per frame.

  2. What changes

    Values outside the range from 0 to 1 are clipped. A depth or disparity map needs scaling into that range first, or the values beyond it are cut off.

    The floating-point precision of the PFM is not kept. GIF stores indexed colors, so the result is a picture to look at, not data to measure. To go the other way, see GIF to PFM.

  3. Options

    Set Grayscale to turn colors into shades of gray, which often makes the file smaller. Set Max width or Max height to shrink a large map, keeping its shape. Smaller images stay as they are, so nothing is enlarged.

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

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

Portable FloatMap

Floating-point pixels in the PNM family, used for HDR and depth maps.

Extensions
.pfm
MIME type
image/x-portable-floatmap
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 PFM to GIF conversion through the API, for your app or your agent.

terminal
$ cv convert photo.pfm photo.gif
$ cv convert photo.pfm photo.gif

Questions.What people ask about PFM to GIF.

01OF 04

Yes. The width and height stay the same, unless you set Max width or Max height to shrink it.

Values outside 0 to 1 are clipped. Scale the depth or disparity values into that range before you convert.

No. Values from 0 to 1 are shown as black to white without a brightness curve.

At most 256. The colors are reduced to a palette with dithering.

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