PFM to PNG Converter

Add a .pfm and get a 16-bit PNG that ordinary image apps open, its numbers shown as shades of light.

FluffyShield Protected workspace
FluffyShield

Isolated workspace: other page scripts can't read your files. How FluffyShield works

Free · No upload · No sign-up · No usage quotas

PNG options here: browser or advanced encoder; RGBA, RGB, grayscale or indexed color; 8- or 16-bit; Fast, Balanced or Maximum compression; interlacing. HDR, PFM and OpenEXR sources write a 16-bit Display P3 PNG by default. Which PNG settings are worth changing?

How it works
  1. Every number is read as light
  2. A fixed curve eases big ones toward white
  3. A 16-bit PNG is saved

What it does

Gray stays gray

A gray PFM, one number per pixel, comes out with equal red, green and blue, so it looks just as gray in the PNG.

Limits There's no setting for which number counts as white: 1 always does.

Will a PNG show what's really in your PFM?

Only if the numbers are light. Anything else is drawn as if it were, by the same curve FluffyBench uses for pictures.

What if the numbers in your PFM aren't light?

A PFM holds one decimal number for each color of each pixel, and the format itself doesn't say what the numbers mean; Netpbm's description of it leaves the units to be understood separately. So a PFM can hold any measurement, not only light.

FluffyBench can't tell which it was given. It reads every PFM as light, where 0 is black and 1 is the white of an ordinary picture, and eases anything brighter down toward white with a fixed curve. For a picture of light that works well. For other numbers, the result follows the curve, not your data.

In the fileToward white−20%00%0.2548%173%1095%10099%1,00099%

Seven numbers as grays

Every number below zero is black, and everything from 10 up is within a few shades of white. How we measured

So if your PFM holds, say, distances in meters, with most pixels well past 10, the PNG would come out as a pale sheet with near and far only faintly apart. Nothing on this page stretches the range first, so take the PNG as a quick look at the shape of the data, and keep the .pfm for the numbers themselves.

Making the PNG

The tool above opens on PFM to PNG with 16-bit output, which is what you want.

  1. Add the .pfm with Choose images.

  2. Press the Convert 1 to PNG button.

  3. Press the download arrow on its card to save the PNG.

    The finished card for the .pfm, its note reading 16-bit Display P3 PNG, with the Download button outlined.
    The finished card for the .pfm, its note reading 16-bit Display P3 PNG, with the Download button outlined.

What else can you do with the .pfm?

The PFM is a render, and the PNG is headed for a web page.

FluffyBench's PNG converter

It takes the PNG this page makes and turns it into a much smaller WebP or AVIF.

The PFM is a rendered picture and you only want to share it.

FluffyBench's PFM to JPG converter

Much lighter than the PNG, which was 60.0 KB from our 147.5 KB test file.

Search FluffyBench