mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-31 02:32:57 +08:00
Merge pull request #12717 from brkirch/make-temp-directory
Create Gradio temp directory if necessary
This commit is contained in:
commit
7da73cbcca
@ -44,6 +44,8 @@ def save_pil_to_file(self, pil_image, dir=None, format="png"):
|
|||||||
|
|
||||||
if shared.opts.temp_dir != "":
|
if shared.opts.temp_dir != "":
|
||||||
dir = shared.opts.temp_dir
|
dir = shared.opts.temp_dir
|
||||||
|
else:
|
||||||
|
os.makedirs(dir, exist_ok=True)
|
||||||
|
|
||||||
use_metadata = False
|
use_metadata = False
|
||||||
metadata = PngImagePlugin.PngInfo()
|
metadata = PngImagePlugin.PngInfo()
|
||||||
|
Loading…
Reference in New Issue
Block a user