Convert PFM to DDS

Turn PFM images into DDS. 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 game texture from a PFM image.You get one DDS file at the same size as the PFM, block-compressed as games use it.

  1. What you get

    A DirectDraw Surface texture at the same width and height as the PFM image. It is block-compressed, the way games use textures.

    The conversion produces one file.

  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.

    Depth and disparity maps often hold values outside 0 to 1. Scale them into that range first, or the clipped areas come out as flat black or white.

  3. Going back

    To turn a texture into a PFM image again, use DDS to PFM.

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

DirectDraw Surface

DirectDraw Surface textures for games.

Extensions
.dds
MIME type
image/vnd-ms.dds
Kind
Images

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

terminal
$ cv convert photo.pfm photo.dds
$ cv convert photo.pfm photo.dds

Questions.What people ask about PFM to DDS.

01OF 04

Yes. The texture has the same width and height as the PFM image.

They are clipped. Anything outside the range from 0 to 1 is cut off at the limit.

Yes, but scale it first. Depth and disparity maps need their values brought into the range from 0 to 1, or the clipped parts lose their detail.

Yes. It is block-compressed, as games use textures.

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