Kaharos94 / ComfyUI-Saveaswebp

Save a picture as Webp file in Comfy + Workflow loading
34 stars 12 forks source link

Filename prefix doesn't substitute #2

Open wyrde opened 1 year ago

wyrde commented 1 year ago

It broke my nice, tidy folder/prefix

file subs 2023-05-06 00_40_48-ComfyUI — Mozilla Firefox

file subs 2023-05-06 00_45_14-Window

thugcee commented 9 months ago

Does anyone have any workaround for this?

storagekid commented 8 months ago

Hi. This worked for me:

  1. Copy the file "ComfyUI\web\extensions\core\saveImageExtraOutput.js" to "ComfyUI\web\extensions\saveAsWebpExtraOutput.js" and open it.
  2. Change line 4 and give it a unique name ej: 'name: "Comfy.image.Save_as_webp'.
  3. Change the name of the node in line 9, from "if (nodeData.name === "SaveImage")" to "if (nodeData.name === "Save_as_webp")".
  4. Restart ComfyUI and it should work.