ComfyUI/web/scripts
Dr.Lt.Data 9f3a19b728
improve: lightweight preview to reduce network traffic (#733)
* To reduce bandwidth traffic in a remote environment, a lossy compression-based preview mode is provided for displaying simple visualizations in node-based widgets.

* Added 'preview=[image format]' option to the '/view' API.
* Updated node to use preview for displaying images as widgets.
* Excluded preview usage in the open image, save image, mask editor where the original data is required.

* Made preview_format parameterizable for extensibility.

* default preview format changed: jpeg -> webp

* Support advanced preview_format option.
- grayscale option for visual debugging
- quality option for aggressive reducing

L?;format;quality?

ex)
jpeg => rgb, jpeg, quality 90
L;webp;80 => grayscale, webp, quality 80
L;png => grayscale, png, quality 90
webp;50 => rgb, webp, quality 50

* move comment

* * add settings for preview_format
* default value is ''(= don't reencode)

---------

Co-authored-by: Lt.Dr.Data <lt.dr.data@gmail.com>
2023-06-05 01:49:43 -04:00
..
api.js Show message in the frontend if prompt execution raises an exception 2023-05-27 21:06:07 -05:00
app.js improve: lightweight preview to reduce network traffic (#733) 2023-06-05 01:49:43 -04:00
defaultGraph.js Change the default prompt to something more impressive. 2023-04-08 01:10:15 -04:00
pnginfo.js Fix issue importing other ui prompts. 2023-05-24 14:01:11 -04:00
ui.js improve: lightweight preview to reduce network traffic (#733) 2023-06-05 01:49:43 -04:00
widgets.js improve: lightweight preview to reduce network traffic (#733) 2023-06-05 01:49:43 -04:00