support for ComfyUI new UI
This commit is contained in:
@@ -51,6 +51,12 @@ Tips: base64格式字符串比较长,会导致界面卡顿,接口请求带
|
||||
### [示例](example/example.png)
|
||||

|
||||
|
||||
## 更新记录
|
||||
### 2024-08-08
|
||||
- 菜单适配ComfyUI前端新界面
|
||||
|
||||

|
||||
|
||||
## 功能
|
||||
- 扩展Save(Api Format)菜单。
|
||||
- 复制工作流
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "comfyui-easyapi-nodes"
|
||||
description = "Provides some features and nodes related to API calls."
|
||||
version = "1.0.0"
|
||||
version = "1.0.1"
|
||||
license = { file = "LICENSE" }
|
||||
dependencies = ["segment_anything", "simple_lama_inpainting", "insightface"]
|
||||
|
||||
|
||||
+2
-1
@@ -1,2 +1,3 @@
|
||||
segment_anything
|
||||
simple_lama_inpainting
|
||||
simple_lama_inpainting
|
||||
insightface
|
||||
@@ -258,7 +258,7 @@ class EasyApiWorkflows {
|
||||
new ComfyButton({
|
||||
icon: "api",
|
||||
content: "Copy to Base64 (API Format)",
|
||||
tooltip: "Copy the current workflow as JSON for use with the ComfyUI API, replace input and output image nodes with base64 nodes",
|
||||
tooltip: "Copy the current workflow as JSON for use with the ComfyUI API (Replace LoadImage to Base64Image, PreviewImage/SaveImage to ImageToBase64, LoadImageMask to Base64ToMask)",
|
||||
action: async () => {
|
||||
app.graphToPrompt().then(p => {
|
||||
const apiObj = p.output;
|
||||
@@ -278,7 +278,7 @@ class EasyApiWorkflows {
|
||||
let exportEasyApiButton = new ComfyButton({
|
||||
icon: "api",
|
||||
content: "Export to Base64 (API Format)",
|
||||
tooltip: "Export the current workflow as JSON for use with the ComfyUI API, replace input and output image nodes with base64 nodes",
|
||||
tooltip: "Export the current workflow as JSON for use with the ComfyUI API (Replace LoadImage to Base64Image, PreviewImage/SaveImage to ImageToBase64, LoadImageMask to Base64ToMask)",
|
||||
action: async () => {
|
||||
let filename = "workflow_api(base64).json";
|
||||
filename = prompt("Export workflow API (Replace LoadImage to Base64Image, PreviewImage/SaveImage to ImageToBase64) as:", filename);
|
||||
|
||||
Reference in New Issue
Block a user