Skip to content

Commit 8640faa

Browse files
committed
Fixed loading prompts from JPG files processed by external apps
1 parent 8485544 commit 8640faa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

update_log_mre.md

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Added Load Last Prompt button (contribution from sngazm).
44
* Fixed hangup in Upscale (Fast 2x).
55
* Fixed problems with turning off FreeU in some scenarios.
6+
* Fixed loading prompts from JPG files processed by external apps.
7+
* Fixed fast upscale always saving as PNG.
68

79
### 2.0.78.3 MRE
810

webui.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ def load_prompt_handler(_file, *args):
244244
if path.endswith('.png') and 'Comment' in image.info:
245245
metadata_string = image.info['Comment']
246246
elif path.endswith('.jpg') and 'comment' in image.info:
247-
metadata_string = image.info['comment']
247+
metadata_bytes = image.info['comment']
248+
metadata_string = metadata_bytes.decode('utf-8').split('\0')[0]
248249
else:
249250
metadata_string = None
250251

0 commit comments

Comments
 (0)