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 -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -