Convert PFM to JPG

Turn PFM images into JPEG. Same size at quality 90 unless asked otherwise, with values from 0 to 1 shown as black to white without a brightness curve.

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 JPG you can open anywhere.Same size as the PFM, at quality 90, with values from 0 to 1 shown as black to white.

  1. What you get

    One JPG with the same width and height as the PFM, saved at quality 90 unless you ask for something else. JPG is lossy, so some detail is not kept.

    Values from 0 to 1 are shown as black to white, with no brightness curve applied. A value of 0 is black and a value of 1 is white.

  2. What gets clipped

    Values outside the range of 0 to 1 are clipped. Depth and disparity maps often hold values beyond that range, so scale them first. Otherwise the clipped parts come out as flat black or white.

  3. Options

    Set Max width or Max height to shrink a large image while keeping its shape. Images that are already smaller stay as they are, so nothing is enlarged.

    Quality runs from 1 to 100. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.

    Turn on Grayscale to turn colors into shades of gray, which often makes the file smaller. Rotate turns the result clockwise by 90, 180 or 270 degrees.

  4. Files that fail

    If the PFM cannot be parsed, the conversion stops with input_corrupted.

PFM and JPG.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 · quality

    Quality

    How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.

    1 to 100 default 90
  5. 05 · 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 · JPG

JPEG

Lossy photo compression that every device and browser opens. Small files, no transparency.

Extensions
.jpg .jpeg .jfif .jpe
MIME type
image/jpeg
Kind
Images

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

terminal
$ cv convert photo.pfm photo.jpg
$ cv convert photo.pfm photo.jpg

Questions.What people ask about PFM to JPG.

01OF 04

Values outside 0 to 1 are clipped. Scale the map into that range before you convert it.

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

Yes. Set Quality from 1 to 100. The default is 90.

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