Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
629272c0
Commit
629272c0
authored
Mar 15, 2023
by
m957ymj75urz
Browse files
resolve conflict with the new PreviewImage node
parent
3d2f60b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
nodes.py
nodes.py
+3
-4
No files found.
nodes.py
View file @
629272c0
...
...
@@ -804,10 +804,9 @@ class SaveImage:
subfolder
=
os
.
path
.
dirname
(
filename_prefix
)
filename
=
os
.
path
.
basename
(
filename_prefix
)
comfy_output_folder
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"output"
)
full_output_folder
=
os
.
path
.
join
(
comfy_output_folder
,
subfolder
)
full_output_folder
=
os
.
path
.
join
(
self
.
output_dir
,
subfolder
)
if
os
.
path
.
commonpath
((
comfy_
output_
folde
r
,
os
.
path
.
realpath
(
full_output_folder
)))
!=
comfy_
output_
folde
r
:
if
os
.
path
.
commonpath
((
self
.
output_
di
r
,
os
.
path
.
realpath
(
full_output_folder
)))
!=
self
.
output_
di
r
:
print
(
"Saving image outside the output folder is not allowed."
)
return
...
...
@@ -842,7 +841,7 @@ class SaveImage:
class
PreviewImage
(
SaveImage
):
def
__init__
(
self
):
self
.
output_dir
=
os
.
path
.
join
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
)),
"temp"
)
self
.
url_suffix
=
"
?
type=temp"
self
.
url_suffix
=
"
&
type=temp"
@
classmethod
def
INPUT_TYPES
(
s
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment