rounded-corners

how to round_corner a logo without white background(transparent?) on it using pil?

how to round_corner a logo without white background(transparent?) on it using pil? Question: I got a square logo and I need to round_corner it, searched for a while and got the follow code “working”: def round_corner_jpg(image, radius): “””generate round corner for image””” mask = Image.new(‘RGB’, image.size) #mask = Image.new(‘RGB’, (image.size[0] – radius, image.size[1] – radius)) …

Total answers: 3