Currently, I am running the following code to prepare images for use on Wikipedia (I run a bot, this script is called automatically).
Code: Select all
C:
del c:\DOCUME~1\Chris\Desktop\PNG\*.png /Q /F
del c:\DOCUME~1\Chris\NB\Done\*.png /Q /F
cd c:\Documents and Settings\Chris\NB\To do
mogrify -resize 450x450 *.*
xcopy c:\DOCUME~1\Chris\NB\TODO~1\* c:\DOCUME~1\Chris\NB\Done /I
del c:\DOCUME~1\Chris\NB\TODO~1\*.* /Q /F
xcopy c:\DOCUME~1\Chris\NB\Done\*.png c:\DOCUME~1\Chris\Desktop\PNG /I
cd c:\DOCUME~1\Chris\Desktop\PNG
optipng -o7 *.png
advpng -z4 *.png
sleep 10
xcopy c:\DOCUME~1\Chris\Desktop\PNG\*.png c:\DOCUME~1\Chris\NB\Done /I /R /Y
del c:\DOCUME~1\Chris\Desktop\PNG\*.png /Q /F
pause
Thanks,
- Chris