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.



576
577
578
579
# File 'lib/fastimage.rb', line 576

def initialize(stream)
  @stream = stream
  parse_exif
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



574
575
576
# File 'lib/fastimage.rb', line 574

def height
  @height
end

#orientationObject (readonly)

Returns the value of attribute orientation.



574
575
576
# File 'lib/fastimage.rb', line 574

def orientation
  @orientation
end

#widthObject (readonly)

Returns the value of attribute width.



574
575
576
# File 'lib/fastimage.rb', line 574

def width
  @width
end

Instance Method Details

#rotated?Boolean

Returns:

  • (Boolean)


581
582
583
# File 'lib/fastimage.rb', line 581

def rotated?
  @orientation >= 5
end