The bash script, which processes jpeg
files via djpeg and cjpeg.
The cjpeg
and the djpeg
available globally:
- Download jpg9cexe.zip
- Extract to
./jpg9cexe
directory - Add
./jpg9cexe
directory toPATH
Environment Variable
$ optimizeImages.sh
Usage: optimizeImages.sh [options] files
Example: optimizeImages.sh -v -o ./out *.jpg
Options:
-v verbose
-q Quality 0..100 (default=90)
-o Output dir (default=./out)
-p Postfix output filename (default='')