Class: FastImageParsing::Exif
- Inherits:
-
Object
- Object
- FastImageParsing::Exif
- Defined in:
- lib/fastimage/fastimage_parsing/exif.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#orientation ⇒ Object
readonly
Returns the value of attribute orientation.
-
#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.
5 6 7 8 9 |
# File 'lib/fastimage/fastimage_parsing/exif.rb', line 5 def initialize(stream) @stream = stream @width, @height, @orientation = nil parse_exif end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
3 4 5 |
# File 'lib/fastimage/fastimage_parsing/exif.rb', line 3 def height @height end |
#orientation ⇒ Object (readonly)
Returns the value of attribute orientation.
3 4 5 |
# File 'lib/fastimage/fastimage_parsing/exif.rb', line 3 def orientation @orientation end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
3 4 5 |
# File 'lib/fastimage/fastimage_parsing/exif.rb', line 3 def width @width end |
Instance Method Details
#rotated? ⇒ Boolean
11 12 13 |
# File 'lib/fastimage/fastimage_parsing/exif.rb', line 11 def rotated? @orientation >= 5 end |