read_info_from_image: don't mutate info in passed-in image

This commit is contained in:
Aarni Koskela 2023-07-03 13:10:42 +03:00
parent 96f0593c8f
commit 5c6a33b3e1
1 changed files with 1 additions and 1 deletions

View File

@ -672,7 +672,7 @@ IGNORED_INFO_KEYS = {
def read_info_from_image(image: Image.Image) -> tuple[str | None, dict]:
items = image.info or {}
items = (image.info or {}).copy()
geninfo = items.pop('parameters', None)