Comment by edflsafoiewq

3 years ago

They've also made a JPEG encoder, cjpegli, with the same "-d 1.0" interface.

Excellent run-through of jpegli encoder here: https://giannirosato.com/blog/post/jpegli/ - wish I could find a pre-compiled terminal utility for cjpegli!

  • They're available at https://github.com/libjxl/libjxl/releases/ for linux and windows.

    • Dear lord.. despite browsing and using github on a daily basis I still miss releases section sometimes! Before I saw your reply I checked the Scoop repos and sure enough, on Windows this will get you latest cjpegli version installed and added to path in one go:

      scoop install main/libjxl

      Note.. now that I tried it: that is really next level for an old format..!

  • > The way jpegli handles XYB color in a JPEG image is by applying an ICC color profile that maps the existing JPEG color channels to XYB.

    That sounds like it might negatively affect compatibility with older decoders that do not handle color spaces correctly.

    • Jpegli has the possibility of using XYB. By default as by being just a replacement of mozjpeg or libjpeg-turbo it doesn't.

      I believe Jon has compared jpegli without XYB. If you turn XYB on, you get about 10 % more compression.

      Jpegli is great even without XYB. It has many other methods for success (largely copied over from JPEG XL adaptive quantization heuristics, more precise intermediate calculations, as well as the guetzli method for variable dead-zone quantization).

      disclaimer: I created the XYB colorspace, most of the JPEG XL VarDCT quality-affecting heuristics, and scoped jpegli. Zoltan (from WOFF2/Brotli fame!) did the actual implementation and made it work so well.

  • I have heard that it will see a proper standalone release at some point this year, but I don't know more than that.