marcel
marcel copied to clipboard
JPEG XL image variants are assigned the wrong :content_type
Steps to reproduce
Download a JXL ( EG from here )
Run Marcel::MimeType.for Pathname.new('logo.jxl')
or Marcel::MimeType.for(File.read('logo.jxl'))
Expected result
The correct mime type is 'image/jxl'
Actual behaviour
The mime type 'application/octet-stream' is returned.
irb(main):022> Marcel::MimeType.for Pathname.new('logo.jxl')
=> "application/octet-stream"
Marcel::MimeType.for(File.read('logo.jxl'))
=> "application/octet-stream"