Sha256: 59aff5c2c592cd2761e3a59b1b02b226945bd5709d903d2f243a3ac04dce7c78

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

module FastImageParsing
  class Tiff < ImageBase # :nodoc:
    def initialize(stream)
      @stream = stream
    end
  
    def dimensions
      exif = Exif.new(@stream)
      if exif.rotated?
        [exif.height, exif.width, exif.orientation]
      else
        [exif.width, exif.height, exif.orientation]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fastimage-2.4.0 lib/fastimage/fastimage_parsing/tiff.rb