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.



562
563
564
565
# File 'lib/fastimage.rb', line 562

def initialize(stream)
  @stream = stream
  parse_exif
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



561
562
563
# File 'lib/fastimage.rb', line 561

def height
  @height
end

#widthObject (readonly)

Returns the value of attribute width.



561
562
563
# File 'lib/fastimage.rb', line 561

def width
  @width
end

Instance Method Details

#rotated?Boolean

Returns:

  • (Boolean)


567
568
569
# File 'lib/fastimage.rb', line 567

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