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
zoomed image
Comments
Post a Comment