Python PIL (Pillow) sometime generate garbage on transparent images -


when i'm create image without color garbage (random color, point or lines)

image = image.new("rgba", (256, 256), none)  # draw rectangle rounded corners image = draw_corner_box(image, radius=10)  # draw rectangle rounded corners , apply blur, # paste image in result , return image = draw_shadow_box(image, radius=10)  image.save("image.png", "png") 

complete image

image generate pil

zoomed image

zoom image generate pil


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -