Created
February 21, 2017 15:10
-
-
Save Kennyl/5854a11a0793a90fc8ea6c4746ff9720 to your computer and use it in GitHub Desktop.
Sample for python Gif to PNG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from PIL import Image, ImageDraw, ImageFont #dynamic import | |
gif='a.gif' | |
img = Image.open(gif) | |
img.save(gif+".png",'png', optimize=True, quality=70) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment