Convert PFM to APNG

Turn PFM images into APNG. Values from 0 to 1 are shown as black to white without a brightness curve, and values outside that range are clipped, so depth or disparity maps need scaling first.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

A still APNG from a floating-point map.One PFM becomes one APNG with a single frame.

  1. What you get

    An APNG with one still frame. The pixels and the transparency of the PFM are carried into the frame without loss, as far as the values fall between 0 and 1.

    The result is one file. APNG is full-color animation with alpha, but this conversion gives you a single frame, not a moving image.

  2. How values are shown

    Values from 0 to 1 are shown as black to white. No brightness curve is applied, so the numbers map straight to shades.

    Values outside that range are clipped. Anything below 0 is shown as black, and anything above 1 is shown as white, so detail in those values is lost.

  3. Depth and disparity maps

    Depth and disparity maps often hold values beyond 0 to 1. Scale them into that range before you convert, or the clipped parts come out flat.

    To go the other way, use APNG to PFM. For more options, see every PFM conversion.

PFM and APNG.What each format is.

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

Animated PNG

Animated PNG, full-color animation with alpha.

Extensions
.apng
MIME type
image/apng
Kind
Images

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

terminal
$ cv convert photo.pfm photo.apng
$ cv convert photo.pfm photo.apng

Questions.What people ask about PFM to APNG.

01OF 04

Yes, for values outside 0 to 1, which are clipped. Values inside that range are kept as they are, along with the transparency.

No. It holds one still frame, even though APNG can hold animation.

Depth and disparity values often fall outside 0 to 1, and those are clipped. Scale the map into that range first.

No. Values from 0 to 1 are shown as black to white without one.

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