Grimoire-Command.es

GNU+Linux command memo

Recompress images JPEG / PNG at equal quality (lossless)

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 -P $((`nproc` / 2)) jpegoptim -pt (2)

$ find . -name \*.png -print0 | xargs -0 -P $((`nproc` / 2)) -I {} zopflipng -m --lossy_8bit --lossy_transparent -y {} {} (3)
1 JPG monotask
2 JPE?G multitask ; See Grep text in selected files for --print0 / -0 options.
3 PNG multitask