All pastes #748415 Raw Edit

Mine

public text v1 · immutable
#748415 ·published 2007-10-24 20:06 UTC
rendered paste body
import os, sys

for root, dirs, files in os.walk(".") :
    for name in files :
        if name.lower()[-4:] != ".png" :
            continue
            
        if name == ".temp.png" :
            os.system("del .temp.png")
            continue
            
        filename = root + "\\" + name
        print "Processing", filename
        
        os.system("copy /b \"%s\" .temp.png > nul" % filename)
        os.system("pngcrush -q -force -rem gAMA -rem cHRM -rem iCCP -rem sRGB -rem tEXt -rem zTXt -ztxt b \"Author\" \"Tone Marie Berg\" .temp.png \"%s\" > nul" % filename)
        os.system("del .temp.png")
        
        for i in xrange(6) :
            os.system("pngout /q /y /f%d /kzTXt \"%s\"" % (i, filename))