Commit 5c6a33b3 authored by Aarni Koskela's avatar Aarni Koskela

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

parent 96f0593c
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment