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 support for GIF comment extension #1896

Merged
merged 1 commit into from
May 23, 2016

Conversation

radarhere
Copy link
Member

Resolves #1895

@coveralls
Copy link

coveralls commented May 7, 2016

Coverage Status

Changes Unknown when pulling 8298fcc on radarhere:comment into * on python-pillow:master*.

@ytrezq
Copy link

ytrezq commented May 7, 2016

A last thing : how would I be able to use this code to add/write comments ?

@radarhere
Copy link
Member Author

im = Image.open('test.gif')
im.info['comment'] = b"Comment text"
im.save('test.gif')

@ytrezq
Copy link

ytrezq commented May 7, 2016

I know this isn’t related to pillow but what is the maximum size of a GIF file ?

@radarhere
Copy link
Member Author

I highly suspect that there is no maximum size of a GIF file. Here is a link to the GIF89a specification - https://www.w3.org/Graphics/GIF/spec-gif89a.txt - a brief search doesn't show anything, and if it's not in the specification, then I wouldn't think that there is any kind of universal limit.

@wiredfool wiredfool merged commit 1eedd2e into python-pillow:master May 23, 2016
@radarhere radarhere deleted the comment branch May 24, 2016 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants