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
21063fa3
"vscode:/vscode.git/clone" did not exist on "68e52250f3587c92b0a99851487a881c25c66837"
Commit
21063fa3
authored
Nov 28, 2023
by
comfyanonymous
Browse files
Lower compress level of png sent on websocket.
parent
983ebc57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server.py
server.py
+1
-1
No files found.
server.py
View file @
21063fa3
...
@@ -576,7 +576,7 @@ class PromptServer():
...
@@ -576,7 +576,7 @@ class PromptServer():
bytesIO
=
BytesIO
()
bytesIO
=
BytesIO
()
header
=
struct
.
pack
(
">I"
,
type_num
)
header
=
struct
.
pack
(
">I"
,
type_num
)
bytesIO
.
write
(
header
)
bytesIO
.
write
(
header
)
image
.
save
(
bytesIO
,
format
=
image_type
,
quality
=
95
,
compress_level
=
4
)
image
.
save
(
bytesIO
,
format
=
image_type
,
quality
=
95
,
compress_level
=
1
)
preview_bytes
=
bytesIO
.
getvalue
()
preview_bytes
=
bytesIO
.
getvalue
()
await
self
.
send_bytes
(
BinaryEventTypes
.
PREVIEW_IMAGE
,
preview_bytes
,
sid
=
sid
)
await
self
.
send_bytes
(
BinaryEventTypes
.
PREVIEW_IMAGE
,
preview_bytes
,
sid
=
sid
)
...
...
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