JXL / Lossless Crop

Ask for help and post your question on how to use XnView MP.

Moderator: xnview

meteorquake
Posts: 147
Joined: Wed Sep 13, 2023 9:37 am

JXL / Lossless Crop

Post by meteorquake »

Are there plans (or is it there already silently?) to implement a lossless crop for JXL? presumably reencoding any sliced areas losslessly (or near enough).
WinnieW
Posts: 50
Joined: Thu Jan 17, 2013 2:28 pm

Re: JXL / Lossless Crop

Post by WinnieW »

I guess it's a better idea to ask the developers of JPEG XL.

Here: https://github.com/libjxl/libjxl
Lokii
Posts: 1
Joined: Fri Nov 21, 2025 12:54 pm

Re: JXL / Lossless Crop

Post by Lokii »

meteorquake wrote: Wed Nov 12, 2025 7:05 pm Are there plans (or is it there already silently?) to implement a lossless crop for JXL? presumably reencoding any sliced areas losslessly (or near enough).
Most likely not
meteorquake
Posts: 147
Joined: Wed Sep 13, 2023 9:37 am

Re: JXL / Lossless Crop

Post by meteorquake »

Many thanks. I suppose the question could be taken more broadly as to whether anyone in the IT world is looking at such a thing, such that xnview could use it (passing the file and selection rectangle values) without having to do the fine coding.
WinnieW
Posts: 50
Joined: Thu Jan 17, 2013 2:28 pm

Re: JXL / Lossless Crop

Post by WinnieW »

Lossless cropping of JPEG XL files is not as trivial compared to JPEG, because JPEG is a much simpler format compared to JPEG XL.
JPEG always use pixel blocks of identical size, JPEG XL however does not by dafault. JPEG Xl use blocks of different sizes to optimize the compression result... only whole blocks of pixels can be cropped from the image.
The only option I see to make a JPEG XL image editable in that way is to restrict the encoder to utilze uniform blocks only. But that option is not implemented in the encoder of JPEG XL atm, and that would be a request adressed to the developers of JPEG XL, not the developer of XnView.