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.



464
465
466
467
# File 'lib/fastimage.rb', line 464

def initialize(stream)
  @stream = stream
  parse_exif
end

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height.



463
464
465
# File 'lib/fastimage.rb', line 463

def height
  @height
end

#widthObject (readonly)

Returns the value of attribute width.



463
464
465
# File 'lib/fastimage.rb', line 463

def width
  @width
end

Instance Method Details

#rotated?Boolean

Returns:

  • (Boolean)


469
470
471
# File 'lib/fastimage.rb', line 469

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