module

CrImage::TIFF

TIFF module implements Reader and Writer. The TIFF specification is at http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf

Constants

BE_HEADER = "MM\u0000*".to_slice
DATA_TYPE_LENGTHS = [0_u32, 1_u32, 1_u32, 2_u32, 4_u32, 8_u32]

Length of one instance of each data type in bytes

IFD_LEN = 12
LE_HEADER = "II*\u0000".to_slice

Class methods

read(path : String) : CrImage::Image

read and decode the entire image

Source
read(io : IO) : CrImage::Image
Source
read_config(path : String) : CrImage::Config

read and decode the configurations like color model, dimensions

Source
read_config(io : IO) : CrImage::Config
Source
write(path : String, image : CrImage::Image, compression = CompressionType::Uncompressed) : Nil

write the Image to file in TIFF format

Source
write(io : IO, image : CrImage::Image, compression = CompressionType::Uncompressed) : Nil

write the Image to IO in TIFF format

Source

Nested types