Convert BMP to PFM

Turn BMP 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 BMP files on the dialor turn it to pick what to do

Floating-point pixels from a Windows bitmap.Each color becomes a 32-bit float in an uncompressed PFM file.

  1. What you get

    One PFM file with each color stored as a 32-bit float. The file is uncompressed, so the pixel values are written out as they are.

    The values keep the scale of the BMP. An 8-bit image runs up to 255 and a 16-bit image runs up to 65535, rather than 0 to 1. If a program expects floats between 0 and 1, it has to divide by the maximum itself.

  2. What it leaves behind

    Transparency. PFM has no place for it, so the alpha channel is dropped and only the color is kept.

  3. Going the other way

    PFM is used for HDR and depth maps, and BMP is read by almost everything. To turn a PFM back into a bitmap, use PFM to BMP. For other PFM conversions, see every PFM conversion.

BMP and PFM.What each format is.

The formats

From · BMP

Bitmap

Windows bitmap. Uncompressed pixels, large files, read by everything.

Extensions
.bmp .dib
MIME type
image/bmp
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 BMP to PFM conversion through the API, for your app or your agent.

terminal
$ cv convert photo.bmp photo.pfm
$ cv convert photo.bmp photo.pfm

Questions.What people ask about BMP to PFM.

01OF 04

No. They keep their 8- or 16-bit scale, up to 255 or 65535.

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

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

One file.

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