Convert PNG to PFM
Turn PNG images into PFM. A Portable Float Map with each color as a 32-bit float, uncompressed.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop PNG files on the dialor turn it to pick what to do
A PNG as floating-point pixels.Each color is stored as a 32-bit float in an uncompressed PFM file.
What you get
One Portable FloatMap file. Each color value is a 32-bit float, and the pixel data is not compressed.
PFM belongs to the PNM family and is used for HDR and depth maps. The PNG goes in as a lossless raster image and comes out in that float form.
What it leaves behind
Transparency. A PNG can carry an alpha channel, but the PFM keeps only the colors, so transparent areas are dropped.
The conversion has no options, so there is nothing to set. Each conversion gives one file.
When it fails
If the PNG cannot be parsed, the conversion stops with
input_corrupted. This means the file itself could not be read as a PNG.To go the other way, use PFM to PNG.
PNG and PFM.What each format is.
The formats
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
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
In your code.The same PNG to PFM conversion through the API, for your app or your agent.
$ cv convert photo.png photo.pfm$ cv convert photo.png photo.pfmQuestions.What people ask about PNG to PFM.
No. Transparency is dropped, and only the colors are kept.
No. The file is uncompressed, with each color stored as a 32-bit float.
No. This conversion has no options.
The file could not be parsed. The conversion stops with input_corrupted when it cannot read the PNG.