datamad2017/automation/images/pngquant.bat

9 lines
304 B
Batchfile
Raw Normal View History

2014-07-28 21:27:01 +02:00
@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 pngquant
forfiles /p %SOURCE% /s /m "*.png" /c "cmd /c echo processing @path && %LOCAL_DIR%\pngquant.exe --skip-if-larger --force --ext .png @path"
pause