Skip to content

For GIF save_all with palette, do not include palette with each frame#5603

Merged
hugovk merged 1 commit intopython-pillow:masterfrom
radarhere:gif_palette
Aug 13, 2021
Merged

For GIF save_all with palette, do not include palette with each frame#5603
hugovk merged 1 commit intopython-pillow:masterfrom
radarhere:gif_palette

Conversation

@radarhere
Copy link
Copy Markdown
Member

Resolves #3788

At the moment,

im.save("output.gif", save_all=True, palette=palette.palette)

will include the palette with each frame of the GIF. This PR instead includes the palette in the global header, and none of the frames. This is a measure to reduce the filesize, so it helps #617

@radarhere radarhere added the GIF label Jul 11, 2021
@hugovk hugovk merged commit a7f5b25 into python-pillow:master Aug 13, 2021
@radarhere radarhere deleted the gif_palette branch August 13, 2021 10:21
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.

GIF - use single colour table for all frames

2 participants