Created
June 15, 2020 20:35
-
-
Save vipulgupta2048/34a80ca526b13e9c0bf988441ae063bc to your computer and use it in GitHub Desktop.
party_saver (Part of PartyStarter)
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
| def party_saver(file): | |
| images_list = [] | |
| for filename in glob( | |
| "~/partystarter/output/" + file + "/*.png" | |
| ): | |
| frame = Image.open(filename) | |
| images_list.append(frame) | |
| images_list[0].save( | |
| f"{file}.gif", | |
| save_all=True, | |
| optimize=True, | |
| append_images=images_list, | |
| transparency=True, | |
| loop=0, | |
| duration=180, | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment