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

[Feature Request] Add support for JPEG XL images #665

Closed
ghost opened this issue Jul 26, 2022 · 4 comments
Closed

[Feature Request] Add support for JPEG XL images #665

ghost opened this issue Jul 26, 2022 · 4 comments

Comments

@ghost
Copy link

ghost commented Jul 26, 2022

Please describe your suggestion, and the problem it'd solve.
In the same spirit as #389, it would be nice to have support for JPEG XL (.jxl) images added to LANraragi.

Additional context
• Chrome, Edge, Opera and Firefox currently have experimental support for JPEG XL.
• ImageMagick has supported JPEG XL since v7.0.10-54.

@Difegue
Copy link
Owner

Difegue commented Jul 26, 2022

I remember memeing mentioning JPEGXL in the release notes for 0.7.7 back then -- At least now there's browser support even if it's gated behind flags like AVIF was back then.

I don't mind adding the format to the supported list, although imagemagick probably needs a supplementary lib to be installed before it can process jxl images -- needs a bit of researching.

@polak14
Copy link
Contributor

polak14 commented Aug 18, 2022

This would be a very useful addition, out of curiosity i losslessly optimized 50 random archives and saw a total file size reduction of almost 40% compared to already optimized (both jpeg and png) archives. Apart from saving space it would also speed up archive decompression, serving and save bandwidth, it would be very useful to support it.
tachiyomi has had JPEG XL support for over a year too.

@Difegue
Copy link
Owner

Difegue commented Aug 19, 2022

The jpeg-xl reference library, which is required by imagemagick, is only available starting from Alpine 3.16.

This means thumbnail/resizing support for JXL won't be available to Windows users, as those are stuck on 3.12 due to #626 .

Difegue added a commit that referenced this issue Aug 19, 2022
@Difegue
Copy link
Owner

Difegue commented Aug 19, 2022

Also libjxl-dev isn't out in any stable form of Debian yet, but I'll be preemptively adding it to the docs so that people know it's a thing.

Otherwise, have fun I guess! This commit adds everything that should be needed for JXL support.

@Difegue Difegue closed this as completed Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants