JuicyPixels-3.1.4: Picture loading/serialization (in png, jpeg, bitmap, gif, tiff and radiance)

Safe HaskellNone

Codec.Picture.Tiff

Description

Module implementing TIFF decoding.

Supported compression schemes :

  • Uncompressed
  • PackBits
  • LZW

Supported bit depth :

  • 2 bits
  • 4 bits
  • 8 bits
  • 16 bits

Synopsis

Documentation

decodeTiff :: ByteString -> Either String DynamicImageSource

Transform a raw tiff image to an image, without modifying the underlying pixel type.

This function can output the following pixel types :

  • PixelY8
  • PixelY16
  • PixelRGB8
  • PixelRGB16
  • PixelCMYK8
  • PixelCMYK16

encodeTiff :: forall px. TiffSaveable px => Image px -> ByteStringSource

Transform an image into a Tiff encoded bytestring, reade to be written as a file.

writeTiff :: TiffSaveable pixel => FilePath -> Image pixel -> IO ()Source

Helper function to directly write an image as a tiff on disk.