-
-
Notifications
You must be signed in to change notification settings - Fork 38
feat: add JPEG-XL encoding support #193
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
Conversation
|
What's the plan with this PR? |
|
@EwoutH |
|
image-rs/image#1765 and image-rs/image#1979 are closed. The |
|
@roland-5 thanks, I'll check this out! |
|
Sorry it took a while for me to return to this PR, but I think it should work in all scenarios now. |
|
ok, let us try this. @Shinyzenith what do you think of this pr? |
|
ok, I think it should be ok |
This PR introduces support for encoding jpeg-xl, closes #11.
Since there's no yet support for
jxlinimage-rscurrent version temporary uses jpegxl-rs crate.Note, that since there's no rust-native
jxlencoder, this crate adds dependency forlibjxl. I think we may need to make this[feature]flag instead?Also, there are some options available for controlling
jxlencoder, such aslossless,quality,speed. We can make it configurable viaconfig.tomlfile, though do we really need to go that far? Right now encoder uses default settings, which createsvisualy losslessresults.One more thing to note, that this PR only adds ability for creating screenshot file as
jxl, for now, at least. Theclipboardandstdoutresult will be a simplejpeg. I am not sure if we should change this behavior, actually.