dotfiles/bin/optiall

17 lines
476 B
Bash
Executable File

#!/bin/sh
fd -e pdf -x cpdfsqueeze {} {}
fd -e pdf -x qpdf --stream-data=compress --replace-input --compress-streams=y --recompress-flate --compression-level=9 --optimize-images {}
fd -e png -x oxipng
fd -e jpg -e jpeg -x jpegoptim
fd -e png -e jpg -e jpeg g -X pingo -s9
fd -e webp -x cwebp -z 9 -mt {} -o {}
fd -e epub -e zip -e cbz -e jar -e docx -e odt -e apk -x advzip -z2
fd -t f -x advdef -z2
fd -e mp3 -x mp3packer
fd -e mp3 -x rename -- -vbr ''
fd -e so -x strip