Animated GIFs are only transparent on their first frame (Python PIL)

Published: 14/01/2020
Animated GIFs are only transparent on their first frame (Python PIL)
Source: STACKOVERFLOW.COM

The following code creates a GIF from two images: # GIFs are always palette images so they would be converted later anyway im1 = PIL.Image.open('grin-emoji-by-twitter-rgba.png').convert('P') im2 = PIL.Image.open('grin-emoji-by-twitter-rgba-2.png').convert('P') im1.save('output.gif', save_all=True, append_images=[im2, im1, im2], loop=0, duration=200, transparency=255) However the result i

Read more
Related news
Comment
FACEBOOK