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 support for image processing? #2421

Open
veluca93 opened this issue Jan 22, 2024 · 5 comments
Open

JPEG XL support for image processing? #2421

veluca93 opened this issue Jan 22, 2024 · 5 comments

Comments

@veluca93
Copy link

I admit I might be a bit partial in asking for this ;)
Now that Safari supports decoding JPEG XL images, would it make sense to add support for producing JPEG XL images with resize_image?

@Keats
Copy link
Collaborator

Keats commented Jan 22, 2024

Is it supported in Chrome? I thought they removed it but i haven't looked at it in ages

@veluca93
Copy link
Author

Unfortunately not...
I personally hope that that will change in the not-so-far future, but who knows...
For now, I'd be happy with reaching Safari (i.e. all iOS devices) :-)

@Keats
Copy link
Collaborator

Keats commented Jan 25, 2024

But is there a poin adding a format that doesn't work on the most used browser for a static site generator?

@veluca93
Copy link
Author

But is there a poin adding a format that doesn't work on the most used browser for a static site generator?

It can be used with <picture> tags to send JXL images to those browsers that do support it (i.e. ~all iOS users, which is a significant fraction of the mobile users), reducing bandwidth usage for them while still sending JPG/PNG images to browsers that don't.

At least, that's how I was planning to use it :-)

If you think it's enough of a use case, I'd be willing to send a PR to add support - if not, since I am not quite impartial on this topic :P, I will not insist further ;)

@Keats
Copy link
Collaborator

Keats commented Jan 25, 2024

I think that's fine to add as long as the library works on linux/mac/windows

veluca93 added a commit to veluca93/zola that referenced this issue May 1, 2024
veluca93 added a commit to veluca93/zola that referenced this issue May 1, 2024
veluca93 added a commit to veluca93/zola that referenced this issue May 1, 2024
veluca93 added a commit to veluca93/zola that referenced this issue May 9, 2024
veluca93 added a commit to veluca93/zola that referenced this issue May 14, 2024
veluca93 added a commit to veluca93/zola that referenced this issue May 14, 2024
veluca93 added a commit to veluca93/zola that referenced this issue May 14, 2024
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

2 participants