| Safe Haskell | None | 
|---|
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
 
- decodeTiff :: ByteString -> Either String DynamicImage
 - class Pixel px => TiffSaveable px
 - encodeTiff :: forall px. TiffSaveable px => Image px -> ByteString
 - writeTiff :: TiffSaveable pixel => FilePath -> Image pixel -> IO ()
 
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
 
class Pixel px => TiffSaveable px Source
Class defining which pixel types can be serialized in a Tiff file.
encodeTiff :: forall px. TiffSaveable px => Image px -> ByteStringSource
Transform an image into a Tiff encoded bytestring, reade to be written as a file.