Package

~/.local/bin/jpg

Rina Kawakita 2019. 12. 26. 22:13
~/.local/bin/jpg
#!/bin/dash
#
# http://github.com/mitchweaver/bin
#
# recursively optimizes images
#

optimize() {
    jpegoptim *.jpg --strip-all
    for i in * ; do
        [ -d "$i" ] && 
            { cd "$i" 
              optimize
              cd .. ; }
    done
}

optimize