logoalt Hacker News

CodesInChaos • last Friday at 8:59 PM • 4 replies • view on HN

Lepton guarantees that JPEG->Lepton->JPEG produces an identical file, not just identical pixels. Does JPEG XL achieve the same thing?


Replies

Broiler9437 • yesterday at 7:17 PM

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

farlight • yesterday at 8:30 AM

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.

Zardoz84 • yesterday at 9:26 AM

yes