command line - jpegtran whole directory -
i want optimize whole test folder jpg images command line. found doesn't work:
cd /home/site/html/update/test/ find . -exec jpegtran -optimize "{}" "{}.opti.jpg" "{}" \;
i want overwrite existing images.
suggestions?
answer:
find /img/path -name "*.jpg" -type f -exec jpegtran -copy none -optimize -outfile {} {} \;
answer:
find /img/path -name "*.jpg" -type f -exec jpegtran -copy none -optimize -outfile {} {} \;
Comments
Post a Comment