ComfyUI/web
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
..
extensions improve: lightweight preview to reduce network traffic (#733) 2023-06-05 01:49:43 -04:00
lib Move node properties panel from double click to menu option. 2023-06-03 11:47:20 -04:00
scripts improve: lightweight preview to reduce network traffic (#733) 2023-06-05 01:49:43 -04:00
types Adds jsdoc for better dev experience 2023-04-15 21:40:39 +01:00
index.html Fix litegraph dialog CSS 2023-05-30 16:01:49 -05:00
jsconfig.json Added support for converting widgets to inputs (and back) 2023-03-23 21:37:19 +00:00
style.css Search box style fix. 2023-06-03 11:19:10 -04:00