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
798a34d0
"vscode:/vscode.git/clone" did not exist on "3fbd0abc5fd1ffc1b74eaae875a22c68fe4e2d5e"
Commit
798a34d0
authored
Nov 28, 2023
by
comfyanonymous
Browse files
Lower compress level for image preview.
parent
a6676384
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
nodes.py
nodes.py
+3
-1
No files found.
nodes.py
View file @
798a34d0
...
...
@@ -1337,6 +1337,7 @@ class SaveImage:
self
.
output_dir
=
folder_paths
.
get_output_directory
()
self
.
type
=
"output"
self
.
prefix_append
=
""
self
.
compress_level
=
4
@
classmethod
def
INPUT_TYPES
(
s
):
...
...
@@ -1370,7 +1371,7 @@ class SaveImage:
metadata
.
add_text
(
x
,
json
.
dumps
(
extra_pnginfo
[
x
]))
file
=
f
"
{
filename
}
_
{
counter
:
05
}
_.png"
img
.
save
(
os
.
path
.
join
(
full_output_folder
,
file
),
pnginfo
=
metadata
,
compress_level
=
4
)
img
.
save
(
os
.
path
.
join
(
full_output_folder
,
file
),
pnginfo
=
metadata
,
compress_level
=
self
.
compress_level
)
results
.
append
({
"filename"
:
file
,
"subfolder"
:
subfolder
,
...
...
@@ -1385,6 +1386,7 @@ class PreviewImage(SaveImage):
self
.
output_dir
=
folder_paths
.
get_temp_directory
()
self
.
type
=
"temp"
self
.
prefix_append
=
"_temp_"
+
''
.
join
(
random
.
choice
(
"abcdefghijklmnopqrstupvxyz"
)
for
x
in
range
(
5
))
self
.
compress_level
=
1
@
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