

I took a look and Pictrs already should support JXL (jpeg xl)
I believe it already works, all though unable to confirm this as I dont have anything atm that can display JXL.
https://lemmy.world/pictrs/image/64d7f66d-04f0-4c9d-8893-f05304feb431.webp?format=jxl&thumbnail=512
^ even though the above says .webp it should be a jxl format image
see this for the default format https://git.asonix.dog/asonix/pict-rs/src/branch/main/pict-rs.toml#L347
But tbh i doubt the default format will change soon bc JXL support is very poor. No android device supports it yet. and the latest browsers only in beta. Only apple side it seems to have some support already.
deleted by creator