abstract class Imagecr::Handler

Direct Known Subclasses

Defined in:

imagecr/handler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : IO, header_bytes : Bytes | Nil = nil) #

[View source]

Instance Method Detail

def header_bytes : Slice(UInt8)? #

First few bytes of the image.


[View source]
def io : IO #

The image IO, excluding header bytes


[View source]
def parse #

Parse the image, returning an Image if one is found.


[View source]
abstract def parse_image #

Actual parsing implementation


[View source]
abstract def verify_remaining_header #

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


[View source]