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

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -