Hi, add these lines in place of the ones at the top of the file to add single file drag and drop support to the batch file. This will work for XP, untested on Vista/w7.
Code:
@echo off
setlocal enabledelayedexpansion
set PNGOptiDir=%~dp0
PATH %PNGOptiDir%;C:\Program Files\ImageMagick\;%PATH%
%~d1
CD %~p1
cls
set currentcolors=0
So this replaces the current top of the file which is:
Code:
@echo off
setlocal enabledelayedexpansion
PATH C:\Program Files\ImageMagick\;%PATH%
cls
set currentcolors=0
Makes it a lot easier to use than having to open a dosbox, hopefully someone will find this of some use.
Edit: And i'll also add this link to a brute force PNG slimmer, be warned though it can take HOURS(about 1 hour on my E8500 C2D for 1024x1024-ish images) on big images but will save quite a lot more(relatively speaking) compared to this one but at the expense of time. I only use it on small stuff, as an example an image i did just now @ 320x240 took just under 7 mins.
http://people.bath.ac.uk/ea2aced/tech/png/pngslim.zip