Convert PFM to AVIF
Turn PFM images into AVIF. Same size, lossy at quality 60 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 PFM float image as an AVIF.The picture keeps its size. Values from 0 to 1 map to black through white.
What you get
One AVIF file with the same width and height as the PFM. The conversion is lossy and uses Quality 60 unless you set another value.
Values from 0 to 1 are shown as black to white, with no brightness curve applied. A value of 0.5 is not lifted or darkened to look brighter or dimmer on screen.
What gets clipped
Values outside the range of 0 to 1 are clipped. Anything below 0 becomes black and anything above 1 becomes white.
Depth and disparity maps often hold values outside that range, so scale them first. Without scaling, much of the map can end up as flat black or white.
Options
Set Quality from 1 to 100 to choose how much detail the lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
Set Max width or Set Max height to shrink a large image while keeping its shape. Images already smaller than the limit stay as they are, so nothing is enlarged. Set Rotate to turn the result 90, 180 or 270 degrees clockwise.
PFM and AVIF.What each format is, and the options this conversion takes.
- 01 · 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 - 02 · 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 - 03 · 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 60 - 04 · 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
AVIF
AV1-based images with better compression than WebP and support for HDR and alpha.
- Extensions
- .avif
- MIME type
- image
/avif - Kind
- Images
In your code.The same PFM to AVIF conversion through the API, for your app or your agent.
$ cv convert photo.pfm photo.avif$ cv convert photo.pfm photo.avifQuestions.What people ask about PFM to AVIF.
Yes. The AVIF is made at Quality 60 unless you set another value, so some detail is lost.
Values outside 0 to 1 are clipped to black or white. Scale the depth or disparity values into that range first.
No, the width and height stay the same. Set Max width or Max height if you want a smaller image.
Yes, AVIF to PFM does the reverse conversion.