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.
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.
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.
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.
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.
- 01 · grayscale
Grayscale
Turns colors into shades of gray, which often makes the file smaller.
- 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 - 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 - 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 - 05 · rotate
Rotate
Turns the result clockwise by a quarter, a half or three quarters.
90 · 180 · 270
The formats
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
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.
$ cv convert photo.pfm photo.jpg$ cv convert photo.pfm photo.jpgQuestions.What people ask about PFM to JPG.
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.
Use JPG to PFM.