compact infotaxt info_json

This commit is contained in:
w-e-w
2024-01-23 02:17:21 +09:00
parent 8a6a4ad894
commit 36fb876da6
3 changed files with 34 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ def run_postprocessing(extras_mode, image, image_folder, input_dir, output_dir,
basename = ''
forced_filename = None
infotext = ", ".join([k if k == v else f'{k}: {infotext_utils.quote(v)}' for k, v in pp.info.items() if v is not None])
infotext = infotext_utils.build_infotext(pp.info)
if opts.enable_pnginfo:
pp.image.info = existing_pnginfo