Recompresser des images JPEG / PNG sans perte de qualité
$ find . -name \*.jpeg -exec jpegoptim -pt (1)
$ find . -regextype posix-extended -iregex '.*(jpeg|jpg)' -print0 | xargs -0 -n 1 -P $((`nproc` / 2)) jpegoptim -pt (2)
$ find . -name \*.png -print0 | xargs -0 -n 1 -P $((`nproc` / 2)) -I {} zopflipng -m --lossy_8bit --lossy_transparent -y {} {} (3)
1 | JPG monotask |
2 | JPE?G multitask ; See Find text in selected files for --print0 / -0 options. |
3 | PNG multitask |