Feathered edges on image with Pillow
问题 I'm trying to figure out how to feather the edges of an image using Pillow with Python. I need something like this cute cat (ignore the visible edges): I tried im.filter(ImageFilter.BLUR) but is not what I'm looking for. 回答1: Have a look at this example: from PIL import Image from PIL import ImageFilter RADIUS = 10 # Open an image im = Image.open(INPUT_IMAGE_FILENAME) # Paste image on white background diam = 2*RADIUS back = Image.new('RGB', (im.size[0]+diam, im.size[1]+diam), (255,255,255))