#NEWLINE# def filters( im , detail = False , sharpen = False , **kwargs ) : #NEWLINE# #INDENT# '\n    Pass the source image through post-processing filters.\n\n    sharpen\n        Sharpen the thumbnail image (using the PIL sharpen filter)\n\n    detail\n        Add detail to the image, like a mild *sharpen* (using the PIL\n        ``detail`` filter).\n\n    ' #NEWLINE# if detail : #NEWLINE# #INDENT# im = im . filter ( ImageFilter . DETAIL ) #NEWLINE# #UNINDENT# if sharpen : #NEWLINE# #INDENT# im = im . filter ( ImageFilter . SHARPEN ) #NEWLINE# #UNINDENT# return im