datamad2017/automation/images/optipng.bat
Vitaliy Zasadnyy 95607eea61 Initial commit
2014-07-28 22:27:01 +03:00

9 lines
No EOL
277 B
Batchfile

@echo on
set LOCAL_DIR=%~dp0
set LOCAL_DIR=%LOCAL_DIR:~0,-1%
if "%~1"=="" (set "SOURCE=..\..\img") else (set "SOURCE=%~1")
echo Optimizing PNG with optipng
forfiles /p %SOURCE% /s /m "*.png" /c "cmd /c echo processing @path && %LOCAL_DIR%\optipng.exe -force -o7 @path"
pause