Skip to content

Added support for GIF comment extension - #1896

Merged
wiredfool merged 1 commit into
python-pillow:masterfrom
radarhere:comment
May 23, 2016
Merged

wiredfool merged 1 commit into
python-pillow:masterfrom
radarhere:comment

Conversation

@radarhere

Copy link
Copy Markdown
Member

Resolves #1895

@coveralls

coveralls commented May 7, 2016 •

Copy link
Copy Markdown

Coverage Status

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

@ytrezq

ytrezq commented May 7, 2016 •

Copy link
Copy Markdown

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

@radarhere

Copy link
Copy Markdown
Member Author
im = Image.open('test.gif')
im.info['comment'] = b"Comment text"
im.save('test.gif')

@ytrezq

ytrezq commented May 7, 2016 •

Copy link
Copy Markdown

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

@radarhere

Copy link
Copy Markdown
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.

4 participants