PNG: advpng -z4, optipng -o7, advdef -z4
JPG: jpegtran -copy none, jpegrescan (that also uses jpegtran)
GIF: gifsicle -O3
They are quite time consuming (especially in case of PNG), but if you know any better sequences, please let me know!
jscl.exe -d -j -n -r -s ¤.jp¤
Instantly gets rid of more jpg junk.
Edit: replace asterixes with ¤
PNG: advpng -z4, optipng -o7, advdef -z4
JPG: jpegtran -copy none, jpegrescan (that also uses jpegtran)
GIF: gifsicle -O3
They are quite time consuming (especially in case of PNG), but if you know any better sequences, please let me know!