We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 458cca0 + 8792be5 commit 0e5d239Copy full SHA for 0e5d239
modules/images.py
@@ -510,8 +510,9 @@ def exif_bytes():
510
511
if extension.lower() == '.png':
512
pnginfo_data = PngImagePlugin.PngInfo()
513
- for k, v in params.pnginfo.items():
514
- pnginfo_data.add_text(k, str(v))
+ if opts.enable_pnginfo:
+ for k, v in params.pnginfo.items():
515
+ pnginfo_data.add_text(k, str(v))
516
517
image.save(fullfn, quality=opts.jpeg_quality, pnginfo=pnginfo_data)
518
0 commit comments