Class: FastImageParsing::Jxl
- Defined in:
- lib/fastimage/fastimage_parsing/jxl.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from ImageBase
Constructor Details
This class inherits a constructor from FastImageParsing::ImageBase
Instance Method Details
#dimensions ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/fastimage/fastimage_parsing/jxl.rb', line 3 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 |