yoga icon indicating copy to clipboard operation
yoga copied to clipboard

JPEG XL support

Open flozz opened this issue 3 years ago • 2 comments

See @nekohayo issue on YOGA Image Optimizer → https://github.com/flozz/yoga-image-optimizer/issues/20

flozz avatar May 30 '22 14:05 flozz

Here's an example primitive implementation of a batch JPEG XL encoding script in Python: https://github.com/kylxbn/jxl-migrate

It simply calls the cjxl binary with the desired file, and passes -d 0 (mathematically lossless, gives you roughly 15-20% filesize saving when converting existing JPEGs) or -d 1 (visually indistinguishable lossy transcoding, gives you roughly 50 to 90% filesize reduction from a regular JPEG source, according to this man page). cjxl doesn't seem to have a parameter for resizing though, I don't know if that's a problem.

In case this is somehow helpful...

nekohayo avatar Oct 31 '22 01:10 nekohayo

YOGA never call external binaries, it always use libraries directly. It avoid having to write temporary files and it is more reliable to target multiple systems (various Linux distro, Windows,...) :)

flozz avatar Nov 03 '22 17:11 flozz