Merge pull request #10905 from AUTOMATIC1111/fix-10896-pnginfo-parameters

fix 10896 pnginfo parameters
This commit is contained in:
AUTOMATIC1111 2023-06-01 06:54:19 +03:00 committed by GitHub
commit e980a4bd88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -503,10 +503,6 @@ def save_image_with_geninfo(image, geninfo, filename, extension=None, existing_p
image_format = Image.registered_extensions()[extension]
existing_pnginfo = existing_pnginfo or {}
if opts.enable_pnginfo:
existing_pnginfo['parameters'] = geninfo
if extension.lower() == '.png':
if opts.enable_pnginfo:
pnginfo_data = PngImagePlugin.PngInfo()