Skip to content

Commit

Permalink
Fix info for first frame of apng images getting clobbered when seekin…
Browse files Browse the repository at this point in the history
…g to the first frame multiple times.
  • Loading branch information
esoma committed Jan 7, 2024
1 parent a786a05 commit 6d99f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/PngImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def save_rewind(self):
}

def rewind(self):
self.im_info = self.rewind_state["info"]
self.im_info = self.rewind_state["info"].copy()
self.im_tile = self.rewind_state["tile"]
self._seq_num = self.rewind_state["seq_num"]

Expand Down

0 comments on commit 6d99f91

Please sign in to comment.