Class: Exif::Thumbnail
- Inherits:
-
Object
- Object
- Exif::Thumbnail
- Defined in:
- lib/exifparser/thumbnail.rb
Overview
APIs are subject to change.
Instance Method Summary collapse
- #bits_per_sample ⇒ Object
- #compression ⇒ Object
- #height ⇒ Object (also: #length)
-
#initialize(ifd1, data) ⇒ Thumbnail
constructor
A new instance of Thumbnail.
- #photometric_interpretation ⇒ Object
- #size ⇒ Object
- #strip_offsets ⇒ Object
- #width ⇒ Object
- #write(dest) ⇒ Object
Constructor Details
#initialize(ifd1, data) ⇒ Thumbnail
Returns a new instance of Thumbnail.
30 31 32 33 |
# File 'lib/exifparser/thumbnail.rb', line 30 def initialize(ifd1, data) @ifd1 = ifd1 @data = data end |
Instance Method Details
#bits_per_sample ⇒ Object
52 53 54 |
# File 'lib/exifparser/thumbnail.rb', line 52 def bits_per_sample search_tag('BitsPerSample') end |
#compression ⇒ Object
56 57 58 |
# File 'lib/exifparser/thumbnail.rb', line 56 def compression search_tag('Compression') end |
#height ⇒ Object Also known as: length
47 48 49 |
# File 'lib/exifparser/thumbnail.rb', line 47 def height search_tag('ImageLength') end |
#photometric_interpretation ⇒ Object
60 61 62 |
# File 'lib/exifparser/thumbnail.rb', line 60 def photometric_interpretation search_tag('PhotometricInterpretation') end |
#size ⇒ Object
35 36 37 |
# File 'lib/exifparser/thumbnail.rb', line 35 def size @data.size end |
#strip_offsets ⇒ Object
64 65 66 |
# File 'lib/exifparser/thumbnail.rb', line 64 def strip_offsets search_tag('StripOffsets') end |
#width ⇒ Object
43 44 45 |
# File 'lib/exifparser/thumbnail.rb', line 43 def width search_tag('ImageWidth') end |
#write(dest) ⇒ Object
39 40 41 |
# File 'lib/exifparser/thumbnail.rb', line 39 def write(dest) dest << @data end |