forked from webcompat/webcompat.com
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webcompat#710 Adds parameters to save all frames for an animated GIF
- Loading branch information
Showing
1 changed file
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
3240856
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self. For animated gif, in fact we want to leave it as-is, because the color palette is being destroyed after the first frame.
It's a known issue of Pillow python-pillow/Pillow#1525
3240856
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the issue is in fact with the save line. it means that if we want to avoid the effect on animated GIF. We have to fix it with one of the proposed hack on Pillow or to avoid Pillow for animated GIF. grmph.
(thinking mode)
3240856
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh! useful
is_animated
discovered inhttps://github.com/python-pillow/Pillow/blame/master/PIL/GifImagePlugin.py#L108
3240856
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a way to fix it in pillow
python-pillow/Pillow#1717 (comment)
Let's see how this is flying.