Hacker News new | ask | show | jobs
by adzm 49 days ago
JPEG transcoding is one of the neatest features of JXL; there is so much existing jpeg out there. Eventually that may be unnecessary, but it's looking like this could already save a significant amount of space for photo archive backups for example.
1 comments

That's just by changing the entropy coder and retaining the DCT coefficients. The idea is similar to Dropbox's Lepton. https://dropbox.tech/infrastructure/lepton-image-compression...
The main difference being that Lepton is worse and 100x slower.
The blog post is from 10 years ago. I'm sure it's much faster on modern hardware. I'd say that the main difference is that JPEG XL can be rendered directly in many applications, while Lepton files will have to be processed into JPEG out of your archives.
If anything the gap is worse on modern hardware because Lepton is hostile to both SIMD and divide-and-conquer thread parallelism.
Microsoft's implementation claims to get a speedup using AVX2.
Lepton guarantees that JPEG->Lepton->JPEG produces an identical file, not just identical pixels. Does JPEG XL achieve the same thing?
That's actually the default behavior for libjxl cli: encoding and then decoding jpeg via jxl produces a file bit identical to the original jpeg file.

Try it: run cjxl › djxl and hash the output against the original.

Yes, with all metadata preserved. The converted JXL even has checksum metadata for verification
Yes
yes