Sha256: c05d20353dab4a857fa03fd430cdd0be07d09ded65c67119fcc0f675bae06281

Contents?: true

Size: 294 Bytes

Versions: 1

Compression:

Stored size: 294 Bytes

Contents

module FastImageParsing
  class Jxl < ImageBase # :nodoc:
    def dimensions
      if @stream.peek(2) == "\xFF\x0A".b
        jxlc = Jxlc.new(@stream)
        [jxlc.width, jxlc.height]
      else
        bmff = IsoBmff.new(@stream)
        [bmff.width, bmff.height]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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