1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-04 07:52:46 +08:00

Limit preview to webp and RGB jpeg.

This commit is contained in:
comfyanonymous
2023-06-05 01:38:32 -04:00
parent 9f3a19b728
commit 2ec980bb9f
2 changed files with 8 additions and 10 deletions

View File

@@ -465,12 +465,11 @@ export class ComfyUI {
/**
* file format for preview
*
* L?;format;quality
* format;quality
*
* ex)
* L;webp;50 -> grayscale, webp, quality 50
* webp;50 -> webp, quality 50
* jpeg;80 -> rgb, jpeg, quality 80
* png -> rgb, png, default quality(=90)
*
* @type {string}
*/