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 support for JPEG-XL #212

Merged
merged 6 commits into from
Nov 22, 2024
Merged

Add support for JPEG-XL #212

merged 6 commits into from
Nov 22, 2024

Conversation

arrufat
Copy link
Contributor

@arrufat arrufat commented Nov 16, 2024

Closes #85.

It works except for a problem where colors are loaded backwards.
I thought it was a problem of endianness, so I played with
https://libjxl.readthedocs.io/en/latest/api_common.html#_CPPv413JxlEndianness

However, even setting any of the three values (big, little, native) leads to the same results.

I will continue to check later. But in case someone wants to give it a try, here it is.

EDIT: working now by forcing LITTLE_ENDIAN and manually arranging the pixels.

@arrufat arrufat force-pushed the add-jxl-support branch 3 times, most recently from cef1268 to 32f5162 Compare November 17, 2024 11:49
src/helpers/JpegXL.cpp Outdated Show resolved Hide resolved
@vaxerski
Copy link
Member

@fufexan ci pls

@fufexan
Copy link
Member

fufexan commented Nov 21, 2024

@vaxerski ready to go.

src/helpers/JpegXL.cpp Outdated Show resolved Hide resolved
Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, that's nice! Thanks :)

@vaxerski vaxerski merged commit dbea6cd into hyprwm:main Nov 22, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

Support for JPEG XL images
3 participants