class Imagecr::Handlers::TiffHandler

Overview

Parses width and height from a Tiff image.

Defined in:

imagecr/handlers/tiff_handler.cr

Constant Summary

TIF_HEADERS = [UInt8.slice(73, 73), UInt8.slice(77, 77)]

Instance Method Summary

Instance methods inherited from class Imagecr::Handler

header_bytes : Slice(UInt8)? header_bytes, io : IO io, parse parse, parse_image parse_image, verify_remaining_header verify_remaining_header

Constructor methods inherited from class Imagecr::Handler

new(io : IO, header_bytes : Bytes | Nil = nil) new

Instance Method Detail

def parse_image #
Description copied from class Imagecr::Handler

Actual parsing implementation


[View source]
def verify_remaining_header #
Description copied from class Imagecr::Handler

Verifiy the rest of the header, that was not checked by Engine


[View source]