Convert PFM to XCF

Turn PFM images into XCF. 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 GIMP file from a float image.You get one XCF with a single layer. Values from 0 to 1 map to black through white.

  1. What you get

    One XCF file in GIMP's native format. It is an 8-bit GIMP image of XCF version 3, which GIMP 2.8 and later open. The image holds one layer named Background, and its tiles are compressed without loss.

  2. How values are shown

    Values from 0 to 1 are shown as black to white without a brightness curve. Values outside that range are clipped, so they come out as pure black or pure white.

    Depth or disparity maps usually hold values beyond that range. Scale them first so the values you care about fall between 0 and 1.

  3. What it leaves behind

    The output is 8-bit, so the floating-point values of the PFM are not kept. Metadata is dropped as well.

    To go the other way, use XCF to PFM.

PFM and XCF.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 · XCF

GIMP Image

GIMP's native image format with layers.

Extensions
.xcf
MIME type
image/x-xcf
Kind
Images

In your code.The same PFM to XCF conversion through the API, for your app or your agent.

terminal
$ cv convert photo.pfm photo.xcf
$ cv convert photo.pfm photo.xcf

Questions.What people ask about PFM to XCF.

01OF 04

It has one layer, named Background. The pixels of the PFM are all in that layer.

GIMP 2.8 and later open it. The file is XCF version 3.

Values outside 0 to 1 are clipped. Scale the map first so its values fall within that range.

No. Values from 0 to 1 are shown as black to white without a brightness curve.

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