Class: FastImage::Heic

Inherits:
Object
  • Object
show all
Defined in:
lib/fastimage.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(stream) ⇒ Heic

Returns a new instance of Heic.



587
588
589
# File 'lib/fastimage.rb', line 587

def initialize(stream)
  @stream = stream
end

Instance Method Details

#width_and_heightObject



591
592
593
594
595
596
597
598
599
600
601
602
603
# File 'lib/fastimage.rb', line 591

def width_and_height
  @max_size = nil
  @primary_box = nil
  @ipma_boxes = []
  @ispe_boxes = []
  @final_size = nil

  catch :finish do
    read_boxes!
  end

  @final_size
end