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.



624
625
626
627
628
# File 'lib/fastimage.rb', line 624

def initialize(stream)
  @stream = stream
  @width, @height, @orientation = nil
  parse_exif
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



622
623
624
# File 'lib/fastimage.rb', line 622

def height
  @height
end

#orientationObject (readonly)

Returns the value of attribute orientation.



622
623
624
# File 'lib/fastimage.rb', line 622

def orientation
  @orientation
end

#widthObject (readonly)

Returns the value of attribute width.



622
623
624
# File 'lib/fastimage.rb', line 622

def width
  @width
end

Instance Method Details

#rotated?Boolean

Returns:

  • (Boolean)


630
631
632
# File 'lib/fastimage.rb', line 630

def rotated?
  @orientation >= 5
end