Class: FastImage::Exif
- Inherits:
-
Object
- Object
- FastImage::Exif
- Defined in:
- lib/fastimage.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(stream) ⇒ Exif
constructor
A new instance of Exif.
- #rotated? ⇒ Boolean
Constructor Details
#initialize(stream) ⇒ Exif
Returns a new instance of Exif.
548 549 550 551 |
# File 'lib/fastimage.rb', line 548 def initialize(stream) @stream = stream parse_exif end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
547 548 549 |
# File 'lib/fastimage.rb', line 547 def height @height end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
547 548 549 |
# File 'lib/fastimage.rb', line 547 def width @width end |
Instance Method Details
#rotated? ⇒ Boolean
553 554 555 |
# File 'lib/fastimage.rb', line 553 def rotated? @orientation && @orientation >= 5 end |