Hide items in log when images are removed.

Hide items in log when images are removed.
This commit is contained in:
lllyasviel 2023-08-17 12:47:48 -07:00 committed by GitHub
parent 3267d56698
commit 4920341e09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

View File

@ -1 +1 @@
version = '1.0.32'
version = '1.0.33'

View File

@ -17,7 +17,8 @@ def log(img, dic):
f.write(f"<p>All images do not contain any hidden data.</p>")
with open(html_name, 'a+') as f:
f.write(f"<hr>\n")
div_name = only_name.replace('.', '_')
f.write(f'<div id="{div_name}"><hr>\n')
f.write(f"<p>{only_name}</p>\n")
i = 0
for k, v in dic:
@ -29,7 +30,7 @@ def log(img, dic):
else:
f.write(f"{k}: <b>{v}</b></p>\n")
i += 1
f.write(f"<p><img src=\"{only_name}\" width=512></img></p>\n")
f.write(f"<p><img src=\"{only_name}\" width=512 onerror=\"document.getElementById('{div_name}').style.display = 'none';\"></img></p></div>\n")
print(f'Image generated with private log at: {html_name}')

View File

@ -1,3 +1,7 @@
### 1.0.33
* Hide items in log when images are removed.
### 1.0.32
* Fooocus private log