Class: EM::FastImage::Exif
- Inherits:
-
Object
- Object
- EM::FastImage::Exif
- Defined in:
- lib/em-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.
452 453 454 455 |
# File 'lib/em-fastimage.rb', line 452 def initialize(stream) @stream = stream parse_exif end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
451 452 453 |
# File 'lib/em-fastimage.rb', line 451 def height @height end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
451 452 453 |
# File 'lib/em-fastimage.rb', line 451 def width @width end |
Instance Method Details
#rotated? ⇒ Boolean
457 458 459 |
# File 'lib/em-fastimage.rb', line 457 def rotated? @orientation && @orientation >= 5 end |