@_ConfigurableFilter(executable='OPTIPNG_EXECUTABLE')
def optipng(infile, executable='optiong'):
 return runinplace('{} -preserve -o2 -quiet %1'.format(executable), infile)

@ _ConfigurableFilter ( executable = 'OPTIPNG_EXECUTABLE' ) def optipng ( infile , executable = 'optiong' ) : return runinplace ( '{} -preserve -o2 -quiet %1' . format ( executable ) , infile )
run optipng on a file .