def thumbgen_filename(filename):
 (name, ext) = op.splitext(filename)
 return ('%s_thumb%s' % (name, ext))

def thumbgen_filename ( filename ) : ( name , ext ) = op . splitext ( filename ) return ( '%s_thumb%s' % ( name , ext ) )
generate thumbnail name from filename .