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
a8705dbf
"profiler/vscode:/vscode.git/clone" did not exist on "0c9a1d25b3951736bf1fdc480de5fa21208f8e56"
Commit
a8705dbf
authored
May 08, 2023
by
comfyanonymous
Browse files
Speed up the mask save and fix refresh replacing copied image.
parent
a7ebd5aa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
server.py
server.py
+1
-1
web/scripts/app.js
web/scripts/app.js
+1
-1
No files found.
server.py
View file @
a8705dbf
...
...
@@ -179,7 +179,7 @@ class PromptServer():
# alpha copy
new_alpha
=
mask_pil
.
getchannel
(
'A'
)
original_pil
.
putalpha
(
new_alpha
)
original_pil
.
save
(
filepath
)
original_pil
.
save
(
filepath
,
compress_level
=
4
)
return
image_upload
(
post
,
image_save_function
)
...
...
web/scripts/app.js
View file @
a8705dbf
...
...
@@ -1300,7 +1300,7 @@ export class ComfyApp {
if
(
widget
.
type
==
"
combo
"
&&
def
[
"
input
"
][
"
required
"
][
widget
.
name
]
!==
undefined
)
{
widget
.
options
.
values
=
def
[
"
input
"
][
"
required
"
][
widget
.
name
][
0
];
if
(
!
widget
.
options
.
values
.
includes
(
widget
.
value
))
{
if
(
widget
.
name
!=
'
image
'
&&
!
widget
.
options
.
values
.
includes
(
widget
.
value
))
{
widget
.
value
=
widget
.
options
.
values
[
0
];
widget
.
callback
(
widget
.
value
);
}
...
...
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