Convert PFM to JNG
Turn PFM images into JNG. Values from 0 to 1 are shown as black to white without a brightness curve, and values outside that range are clipped, so depth or disparity maps need scaling first.
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 JNG picture from a floating-point map.Same width and height, with colors stored as a JPEG.
What you get
One JNG file at the same width and height as the PFM. Its colors are stored as a JPEG, and its transparency is stored without loss.
How values are shown
Values from 0 to 1 are shown as black to white, with no brightness curve applied. Values outside that range are clipped.
Depth and disparity maps need scaling first. Without it, values beyond the 0 to 1 range are clipped and the map does not show its full range.
Colors and transparency
The colors go into the JNG as a JPEG, so they are stored with loss. The transparency is kept as it is, with no loss.
To go the other way, use JNG to PFM. For other options, see every PFM conversion.
PFM and JNG.What each format is.
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
JNG
JPEG Network Graphics, a JPEG picture with a PNG-style transparency channel from the MNG family.
- Extensions
- .jng
- MIME type
- image
/x -jng - Kind
- Images
In your code.The same PFM to JNG conversion through the API, for your app or your agent.
$ cv convert photo.pfm photo.jng$ cv convert photo.pfm photo.jngQuestions.What people ask about PFM to JNG.
Yes, but scale the values into the range 0 to 1 first. Values outside that range are clipped.
Yes. The width and height stay the same.
Not for the colors. They are stored as a JPEG. The transparency is stored without loss.
No. Values outside the range 0 to 1 are clipped.