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.



908
909
910
911
912
# File 'lib/fastimage.rb', line 908

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

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



906
907
908
# File 'lib/fastimage.rb', line 906

def height
  @height
end

#orientationObject (readonly)

Returns the value of attribute orientation.



906
907
908
# File 'lib/fastimage.rb', line 906

def orientation
  @orientation
end

#widthObject (readonly)

Returns the value of attribute width.



906
907
908
# File 'lib/fastimage.rb', line 906

def width
  @width
end

Instance Method Details

#rotated?Boolean

Returns:

  • (Boolean)


914
915
916
# File 'lib/fastimage.rb', line 914

def rotated?
  @orientation >= 5
end