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

add jpegxl support #10765

Open
1 of 2 tasks
joskezelensky opened this issue Dec 13, 2024 · 1 comment
Open
1 of 2 tasks

add jpegxl support #10765

joskezelensky opened this issue Dec 13, 2024 · 1 comment
Labels
proposal This issue is a proposal, usually non-trivial change

Comments

@joskezelensky
Copy link

Have you read the Contributing Guidelines on issues?

Motivation

jpeg-XL is a cutting-edge new image codec that is faster, better at lossy compression than any other image codec and has faster image decompression. Webp is unreliable and jpeg can have a lot of artifacts
So why is jpeg-xl not supported? maybe because it isn't supported by chromium, but hey. If docosaurus supports jpeg-xl before chromium does again, it will be already implemented.

Self-service

  • I'd be willing to do some initial work on this proposal myself.
@joskezelensky joskezelensky added proposal This issue is a proposal, usually non-trivial change status: needs triage This issue has not been triaged by maintainers labels Dec 13, 2024
@slorber slorber removed the status: needs triage This issue has not been triaged by maintainers label Dec 19, 2024
@slorber
Copy link
Collaborator

slorber commented Dec 19, 2024

What does it mean for Docusaurus to support jpegxl according to you?

What prevents you from implementing a Docusaurus plugin to add this support on your own?

The goal of Docusaurus is not to support everything out of the box: we rely on the community and our plugin ecosystem for that and only include the most common, well-supported things in the core repo/packages. If something is not supported in all browsers yet, it's unlikely we encourage usage of it by creating something custom to support it.


We use Webpack image loader to allow require("./img.png") syntax:

    images: () => ({
      use: [loaders.url({folder: 'images'})],
      test: /\.(?:ico|jpe?g|png|gif|webp|avif)(?:\?.*)?$/i,
    }),

If you just want us to add support for .jxl extensions, we could do that easily.

But is it what you actually want?
I don't know. 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal This issue is a proposal, usually non-trivial change
Projects
None yet
Development

No branches or pull requests

2 participants