mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-28 18:21:48 +00:00
Chasing save issues (#2331)
* already_saved_as attribute for gallery items after hiresfix quickbutton * different method to select image in gallery after hires quickbutton with insert option to avoid other changes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import datetime, time
|
||||
import datetime
|
||||
import functools
|
||||
import pytz
|
||||
import io
|
||||
@@ -740,7 +740,7 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i
|
||||
|
||||
fullfn_without_extension = _atomically_save_image(image, fullfn_without_extension, extension)
|
||||
fullfn = fullfn_without_extension + extension
|
||||
image.already_saved_as = f"{fullfn}\?{time.process_time_ns()}"
|
||||
image.already_saved_as = fullfn
|
||||
|
||||
oversize = image.width > opts.target_side_length or image.height > opts.target_side_length
|
||||
if opts.export_for_4chan and (oversize or os.stat(fullfn).st_size > opts.img_downscale_threshold * 1024 * 1024):
|
||||
|
||||
Reference in New Issue
Block a user