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.

  1. 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.

  2. 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.

  3. 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

From · PFM

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
To · JNG

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.

terminal
$ cv convert photo.pfm photo.jng
$ cv convert photo.pfm photo.jng

Questions.What people ask about PFM to JNG.

01OF 04

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.

More conversions.Other ways in and out of PFM and JNG.