I am trying to use pngcrush to optimise my png image. I am able to run it on terminal with following command
$ pngcrush -brute -e "Optimize.png" filename.png
but i want achieve it from my Java program. How can I achieve it? I have googled it but not found any relevant info.
You can invoke the command from your program directly: