Optimize png’s from command line with optipng

07:36 PM by Christian Koch

Filed under Commands

Last modified 07:41 PM

cd /to/my/parent/folder/with/pngs
find . -name "*.png" -type f -exec optipng -o3 {} {} \;

Be aware that this updates all png’s in the entire subtree of /to/my/parent/folder/with/pngs

 

Related Articles

                                                Leave a Comment