marcel icon indicating copy to clipboard operation
marcel copied to clipboard

JPEG XL image variants are assigned the wrong :content_type

Open dkam opened this issue 9 months ago • 1 comments

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"

dkam avatar Oct 13 '23 03:10 dkam