Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added append_images parameter to GIF saving #2103

Merged
merged 2 commits into from Sep 22, 2016

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented Sep 4, 2016

Attempt to resolve #2098

The request was to create an animated GIF from scratch. This change is a bit more general, providing a mechanism to add different images when saving a GIF. Usage is

im.save(out, save_all=True, append_images=[im1, im2, ...])

The append_images parameter will not be used unless save_all is true.

Please provide any feedback.

@radarhere radarhere force-pushed the append_images branch 2 times, most recently from cc011b1 to 6634729 Compare September 4, 2016 11:19
@wodim
Copy link

wodim commented Sep 4, 2016

The palette is completely broken for all the frames but the first one.

@radarhere
Copy link
Member Author

@wodim can you provide files/code to allow me to replicate?

@wodim
Copy link

wodim commented Sep 5, 2016

Just take a few png files of the same size (pictures of stuff, not simple pngs of only one colour) and try to save them as a GIF.

@radarhere
Copy link
Member Author

radarhere commented Sep 11, 2016

Okay, I've made changes to this PR. Please try again.

@wodim
Copy link

wodim commented Sep 11, 2016

Thank you very much, this seems to work correctly.

@radarhere radarhere added the GIF label Sep 12, 2016
@wiredfool wiredfool merged commit 25797b2 into python-pillow:master Sep 22, 2016
@radarhere radarhere deleted the append_images branch September 22, 2016 09:21
@wiredfool wiredfool mentioned this pull request Sep 22, 2016
kkopachev added a commit to kkopachev/thumbor that referenced this pull request Dec 13, 2016
 They changed number of elements output in getdata function: python-pillow/Pillow#2103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create an animated GIF from scratch
3 participants