I'm using OptiPNG for a large amount of PNGs I need to optimize. I can get it to run with a batch script where the application and image are in one folder together.
start.bat
contains:
start _OPNG.exe *.png -zc9 -zm9 -zs3 -f0-5 -nc -strip "all"
However, let's say I have a folder in d:\images
with 1.png
through 10.png
, then I've got a sub-folder d:\images\sub1
with 1sub.png
through 10sub.png
.
The app is located in, let's say, f:\OptiPNG\optipng.exe
.
I want a batch file where I have to manually edit just the location of the image folder I want to optimize. The batch file should take into account all PNGs in that folder and its subfolders.
Anybody able to help me out?