Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JPEG XL image variants are assigned the wrong :content_type #95

Open
dkam opened this issue Oct 13, 2023 · 3 comments
Open

JPEG XL image variants are assigned the wrong :content_type #95

dkam opened this issue Oct 13, 2023 · 3 comments

Comments

@dkam
Copy link

dkam commented Oct 13, 2023

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
Copy link
Author

dkam commented Oct 13, 2023

It looks like it's in Apache Tika already - I guess the tables just need regenerating and new version pushed?

I've cloned Marcel and created a branch with the updates - happy to create a pull request.

@creativetags
Copy link

Would love to see this merged

@czj
Copy link

czj commented Jan 27, 2025

JPEG XL has been supported by many image CDNs and Safari for 18 months. I would appreciate if someone could update the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants