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.


745
746
747
748
749
# File 'lib/fastimage.rb', line 745

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

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height


743
744
745
# File 'lib/fastimage.rb', line 743

def height
  @height
end

#orientationObject (readonly)

Returns the value of attribute orientation


743
744
745
# File 'lib/fastimage.rb', line 743

def orientation
  @orientation
end

#widthObject (readonly)

Returns the value of attribute width


743
744
745
# File 'lib/fastimage.rb', line 743

def width
  @width
end

Instance Method Details

#rotated?Boolean

Returns:

  • (Boolean)

751
752
753
# File 'lib/fastimage.rb', line 751

def rotated?
  @orientation >= 5
end