Changed to upload to input dir

Fixed jpg
Added dupe support
Changed to use existing nodes
This commit is contained in:
pythongosssss
2023-03-09 17:57:59 +00:00
parent 4a326a2548
commit 99abc0eb2e
4 changed files with 16 additions and 14 deletions

View File

@@ -833,9 +833,6 @@ class LoadImage:
m.update(f.read())
return m.digest().hex()
class UploadImage(LoadImage):
input_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "uploads")
class LoadImageMask:
input_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "input")
@classmethod
@@ -871,9 +868,6 @@ class LoadImageMask:
m.update(f.read())
return m.digest().hex()
class UploadImageMask(LoadImageMask):
input_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), "uploads")
class ImageScale:
upscale_methods = ["nearest-exact", "bilinear", "area"]
crop_methods = ["disabled", "center"]
@@ -925,9 +919,7 @@ NODE_CLASS_MAPPINGS = {
"LatentUpscale": LatentUpscale,
"SaveImage": SaveImage,
"LoadImage": LoadImage,
"UploadImage": UploadImage,
"LoadImageMask": LoadImageMask,
"UploadImageMask": UploadImageMask,
"ImageScale": ImageScale,
"ImageInvert": ImageInvert,
"ConditioningCombine": ConditioningCombine,