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

APNG - use previous frame with dispose action to draw the next frame #5071

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/PIL/PngImagePlugin.py
Expand Up @@ -868,6 +868,11 @@ def load_prepare(self):
self.decoderconfig = self.decoderconfig + (1,)

self.__idat = self.__prepare_idat # used by load_read()

# Use prev_im as base image
if self.is_animated and self._prev_im:
self.im = self._prev_im.copy()

ImageFile.ImageFile.load_prepare(self)

def load_read(self, read_bytes):
Expand Down