def post_smooth(image): try: import ImageFilter except ImportError: from PIL import ImageFilter return image.filter(ImageFilter.SMOOTH)