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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -