Convert JPG to PFM
Turn JPG photos 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 JPG files on the dialor turn it to pick what to do
A JPG as floating-point pixels.The result is a PFM file with each color stored as a 32-bit float.
What you get
One PFM file, an uncompressed Portable FloatMap. Each color value is a 32-bit float. PFM belongs to the PNM family and is used for HDR and depth maps.
The JPG is turned upright by its orientation tag before it is written. A photo that was stored sideways comes out the right way up.
What stays the same
JPG is a lossy format, and the conversion does not undo that. The PFM holds the pixels as the JPG decoded them, in a different number format. Detail that JPG compression already removed does not come back.
Options and failures
This conversion has no options. You pick a JPG and get a PFM.
If the file cannot be parsed, the conversion stops with
input_corrupted. To go the other way, use PFM to JPG.
JPG and PFM.What each format is.
The formats
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
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 JPG to PFM conversion through the API, for your app or your agent.
$ cv convert photo.jpg photo.pfm$ cv convert photo.jpg photo.pfmQuestions.What people ask about JPG to PFM.
It shows the same picture, turned upright by the orientation tag. The values are stored as 32-bit floats instead of the JPG's compressed form.
No. JPG is lossy, and the PFM holds the pixels as the JPG decoded them. Lost detail stays lost.
No. It has no options.
The file could not be parsed. The conversion stops with input_corrupted when that happens.