Convert PFM to WEBP
Turn PFM images into WEBP. Same size, lossy at quality 90 unless lossless is set, 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 WebP of your floating-point image.Same width and height, lossy at quality 90 by default.
What you get
One WebP file at the same width and height as the PFM. Unless you turn on Lossless, it is encoded lossy at quality 90.
Values from 0 to 1 are shown as black to white, with no brightness curve applied.
What gets clipped
Values outside the range of 0 to 1 are clipped. A depth or disparity map often holds values beyond that range, so scale it first. Otherwise those values come out as pure black or pure white.
Because the output is lossy by default, some detail is lost. Set Lossless to encode without losing anything where the format can. The result then matches the input in pixels or samples, and it is much bigger than a lossy one.
Options
Set Quality to change how much detail lossy compression keeps, from 1 to 100. Above 90 the file grows quickly while the picture barely changes.
Set Max width or Max height to shrink a large image while keeping its shape. Smaller images stay as they are, so nothing is enlarged. Grayscale turns colors into shades of gray, which often makes the file smaller. Rotate turns the result clockwise by 90, 180 or 270 degrees.
To go the other way, use WEBP to PFM.
PFM and WEBP.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 · lossless
Lossless
Encodes without losing anything where the format can. The result is identical to the input in pixels or samples, and much bigger than a lossy one.
- 03 · 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 - 04 · 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 - 05 · 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 - 06 · 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
WebP
Google's web image format with lossy and lossless modes, alpha and animation. Smaller than JPEG and PNG.
- Extensions
- .webp
- MIME type
- image
/webp - Kind
- Images
In your code.The same PFM to WEBP conversion through the API, for your app or your agent.
$ cv convert photo.pfm photo.webp$ cv convert photo.pfm photo.webpQuestions.What people ask about PFM to WEBP.
Yes. The width and height stay the same. Use Max width or Max height if you want it smaller.
Values outside 0 to 1 are clipped. Scale the depth or disparity values into that range before you convert.
Yes. Turn on Lossless. The result is identical to the input in pixels or samples, and much bigger than a lossy one.
Quality is 90 by default. You can set it from 1 to 100.