Code: Select all
apt-get install optipng
Code: Select all
optipng -o7 *.png %N
You might not want o7, so put o6, or o5, or whatever value fits your requirements and/or processing power.
Now when you go to your png directory, you can just click on the new tool to optimise them all.
(If you're used to Thunar-actions, you can use this same method to create similar Spacefm actions.)