Library for writing images in OpenEXR HDR file format.
|Version on this page:||0.1.0.1|
|LTS Haskell 20.24:||0.1.0.2|
|Stackage Nightly 2023-06-04:||0.1.0.2|
|Latest on Hackage:||0.1.0.2|
Maintained by email@example.com
This version can be pinned in stack with:
Module documentation for 0.1.0.1
Depends on 9 packages(full list with versions):
Haskell OpenEXR Library
This library can write colored images which use floating point values into OpenEXR (v2) high-dynamic-range file format.
- scanline format
- compression (ZIPS, ZIP)
- pixel format (RGB float32)
stack.yaml by adding path to
packages: - '.' - path/openexr-write
An image can be written by calling
writeFile function. For example,
following code stores a compressed image consisting of one red pixel.
module Main where import qualified Data.Vector as V import qualified Graphics.OpenEXR as EXR main :: IO () main = do let image = EXR.ImageRGBF 1 1 (V.fromList [EXR.PixelRGBF 1.0 0.0 0.0]) EXR.writeFile "image.exr" image EXR.ZipCompression