Files
audioscavenger-save-image-e…/__init__.py
T
audioscavenger d38ac58316 release 2.64 helpPopup
modified:   README.md
        	modified:   __init__.py
        	modified:   save_image_extended.py
    	modified:   web/js/help_popup.js
	modified:   __init__.py
	modified:   web/js/help_popup.js
2024-05-29 09:31:57 -07:00

31 lines
1.1 KiB
Python

# Customize the folder, sub-folders, and filenames of your images!
# Save data about the generated job (sampler, prompts, models) as entries in a `json` (text) file, in each folder.
# Use the values of ANY node's widget, by simply adding its badge number in the form _id.widget_name_:
# Oh btw... also saves your output as **WebP** or **JPEG**... And yes the prompt is included :) ComfyUI can load it but a PR approval is needed.
"""
@author: AudioscavengeR
@title: Save Image Extended
@nickname: Save Image Extended
@description: 1 custom node to save your pictures in various folders and formats.
"""
from .save_image_extended import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
WEB_DIRECTORY = "./web"
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', "WEB_DIRECTORY"]
from aiohttp import web
from server import PromptServer
from pathlib import Path
if hasattr(PromptServer, "instance"):
# NOTE: we add an extra static path to avoid comfy mechanism
# that loads every script in web.
PromptServer.instance.app.add_routes(
[web.static("/save_image_extended", (Path(__file__).parent.absolute() / "assets").as_posix())]
)