Class: Exif::Tag::TIFF::Compression

Inherits:
Base
  • Object
show all
Defined in:
lib/exifparser/tag.rb

Overview

0x0103 - Compression

Instance Attribute Summary

Attributes inherited from Base

#IFD, #count, #data, #dataPos, #pos, #tagID

Instance Method Summary collapse

Methods inherited from Base

#formatExposureTime, #formatFNumber, #formatFocalLength, #formatLatLon, #initialize, #inspect, #name, #processData, #value

Constructor Details

This class inherits a constructor from Exif::Tag::Base

Instance Method Details

#to_sObject



410
411
412
413
414
415
416
417
418
419
# File 'lib/exifparser/tag.rb', line 410

def to_s
  case @formatted
  when 1
    'uncompressed'
  when 6
    'JPEG compression'
  else
    'Unknown'
  end
end