Class: FastImage::Exif

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stream) ⇒ Exif

Returns a new instance of Exif.



436
437
438
439
# File 'lib/fastimage.rb', line 436

def initialize(stream)
  @stream = stream
  parse_exif
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



435
436
437
# File 'lib/fastimage.rb', line 435

def height
  @height
end

#widthObject (readonly)

Returns the value of attribute width.



435
436
437
# File 'lib/fastimage.rb', line 435

def width
  @width
end

Instance Method Details

#rotated?Boolean

Returns:

  • (Boolean)


441
442
443
# File 'lib/fastimage.rb', line 441

def rotated?
  @orientation && @orientation >= 5
end