Convert PFM to TGA

Turn PFM images into TGA. 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 Targa picture from a float image.The pixels and transparency carry over without loss. Values are shown as black to white.

  1. What you get

    One TGA file with the same pixels and transparency as the PFM. The conversion is 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 often hold values outside 0 to 1. Scale them first, or the clipped parts come out as pure black or white.

  3. Going the other way

    To turn a Targa picture back into a floating-point file, use TGA to PFM.

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

Truevision TGA

Truevision TGA images, common in game assets.

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

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

terminal
$ cv convert photo.pfm photo.tga
$ cv convert photo.pfm photo.tga

Questions.What people ask about PFM to TGA.

01OF 04

No. The TGA has the same pixels and transparency as the PFM.

Values outside 0 to 1 are clipped, so a depth or disparity map needs scaling first. Scale it into that range before you convert.

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

Yes. The Targa picture has the same transparency as the source.

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