PFM to JPG Converter

Add a .pfm from a renderer or research program and get a JPG that any app or chat will show.

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

How it works
  1. The PFM's rows are read bottom up
  2. Its numbers are eased under white
  3. The picture is saved as a JPG

What it does

A small file to share

A PFM spends 4 bytes on every color of every pixel; a JPG describes the picture in small patches instead. Our 128 by 96 test picture went from 147.5 KB to 5.2 KB.

Gray files too

A gray PFM, which stores one number for each pixel instead of three, comes out as a gray JPG.

Limits A PFM holding an infinite value, or ending before its last row, gets an error instead of a half-made picture.

Did your PFM come out upside down as a JPG?

Then it was saved with its rows top first. Nothing is lost: Flip in FluffyBench's Crop and adjust images tool turns it the right way up.

What if the JPG comes out upside down?

Then the program that saved the PFM wrote its rows the other way round. The format stores a picture from the bottom row up, and FluffyBench reads it that way. Netpbm's description of the format notes that Adobe Photoshop's version of PFM stores its rows from the top, so a file from Photoshop, or from a program that copies it, arrives here upside down.

The picture is only turned over, and FluffyBench's Crop and adjust images tool turns it back.

Turning the finished JPG the right way up:

  1. Open Crop and adjust images and add the JPG with Choose images.

  2. Press Adjust, at the top of the tool.

  3. On a phone, press the gear button marked PNG; on a computer the settings are already open.

  4. Under Flip, press Upside down.

    The Flip setting with its Upside down button pressed and outlined.
    The Flip setting with its Upside down button pressed and outlined.
  5. Press Apply to all.

  6. Press the download arrow on the turned picture's card. It's saved as a PNG.

Getting a JPG out of the .pfm

Color and gray PFM files both work with the tool exactly as it is.

  1. Tap or click Choose images and select the .pfm.

  2. Convert 1 to JPG starts the job.

  3. Check the picture on the finished card: if it's upside down, see the steps above. Then press its download arrow.

    The finished card for pfm-photo-pf.pfm, showing the picture the right way up, with the Download button outlined.
    The finished card for pfm-photo-pf.pfm, showing the picture the right way up, with the Download button outlined.

The decimal numbers in a PFM also go beyond white, which a JPG can't show, so FluffyBench eases them down with a fixed curve first: the JPG is a picture to look at, and the .pfm is the copy to keep for the numbers.

When does a JPG fall short?

The PFM holds measurements, such as distances, not a picture of light.

FluffyBench's PFM to PNG converter

It explains how numbers that aren't light come out, in a lossless file.

The file is a Radiance .hdr, not a PFM.

FluffyBench's HDR to JPG converter

The same curve, for Radiance's file of light levels.

Search FluffyBench