Optimize png’s from command line with optipng

07:36 PM by Christian Koch

Filed under Commands

Last modified Monday February 3rd, 2014

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