Convert SUN to PFM

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

SUN images as floating-point PFM.Each color becomes a 32-bit float in an uncompressed Portable FloatMap.

  1. What you get

    One PFM file. Each color value is stored as a 32-bit float, and the data is not compressed.

    PFM is part of the PNM family and is used for HDR images and depth maps. The source is a Sun Raster image from an old Unix workstation.

  2. How values are scaled

    The values keep the scale of the source. An 8-bit image gives values up to 255, and a 16-bit image gives values up to 65535. They are not rescaled to the range 0 to 1.

    A program that expects floats between 0 and 1 needs to account for this scale when it reads the file.

  3. What it leaves behind

    Transparency is dropped. The PFM holds color only, so any alpha channel in the SUN file is not carried over.

    To go the other way, use PFM to SUN.

SUN and PFM.What each format is.

The formats

From · SUN

Sun Raster

Sun Microsystems raster images from old Unix workstations.

Extensions
.ras .sun
MIME type
image/x-sun-raster
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 SUN to PFM conversion through the API, for your app or your agent.

terminal
$ cv convert photo.ras photo.pfm
$ cv convert photo.ras photo.pfm

Questions.What people ask about SUN to PFM.

01OF 04

They keep the 8- or 16-bit scale of the source, so they go up to 255 or 65535. They are not mapped to 0 to 1.

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

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

No. This conversion has no options. It produces one file.

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