Convert TGA to PFM

Turn TGA images into PFM. A Portable Float Map with each color as a 32-bit float, uncompressed.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop TGA files on the dialor turn it to pick what to do

TGA pixels as 32-bit floats.The result is one PFM file with uncompressed float values.

  1. What you get

    A Portable FloatMap with each color stored as a 32-bit float, uncompressed. You get one file for each TGA you convert.

    PFM is a floating-point format in the PNM family. It is used for HDR and depth maps.

  2. How values are scaled

    The values keep their 8- or 16-bit scale. A color goes up to 255 for an 8-bit image or 65535 for a 16-bit image, not up to 1. If a program expects values from 0 to 1, the numbers here are larger than it expects.

  3. What it leaves behind

    Transparency is dropped. Any alpha channel in the TGA is not carried into the PFM, so the output holds color only.

    To go the other way, use PFM to TGA. For other TGA formats, see every TGA conversion.

TGA and PFM.What each format is.

The formats

From · TGA

Truevision TGA

Truevision TGA images, common in game assets.

Extensions
.tga
MIME type
image/x-tga
Kind
Images
To · 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

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

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

Questions.What people ask about TGA to PFM.

01OF 04

No. They keep the 8- or 16-bit scale of the source, so they run up to 255 or 65535.

No. The file is uncompressed, with each color stored as a 32-bit float.

No. Transparency is dropped, and only the color is kept.

One file.

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