How to convert all images in a directory to JXL

You'll need libjxl installed and available at system's PATH to run these commands. Windows for %f in (*.jpg) do cjxl --distance 0 --effort 9 "%f" "%~nf.jxl" Linux for f in *.jpg; do cjxl --distance 0 --effort 9 "$f" "${f%.jpg}.jxl"; done