Add PreviewToLoad node for bridging preview images to LoadImage nodes

Previews an image (like PreviewImage) and saves a copy to input/ so a
LoadImage node can reference it.  JS extension adds a target-node-ID
widget and "Send to Load Image" button that updates the target's combo.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-24 11:49:13 +01:00
parent 1e3e30d8f1
commit b5b4a26f6d
3 changed files with 185 additions and 2 deletions

View File

@@ -6,9 +6,13 @@ from .string_utils import (
NODE_CLASS_MAPPINGS as _string_class_mappings,
NODE_DISPLAY_NAME_MAPPINGS as _string_display_mappings,
)
from .image_preview import (
NODE_CLASS_MAPPINGS as _image_class_mappings,
NODE_DISPLAY_NAME_MAPPINGS as _image_display_mappings,
)
NODE_CLASS_MAPPINGS = {**_json_class_mappings, **_string_class_mappings}
NODE_DISPLAY_NAME_MAPPINGS = {**_json_display_mappings, **_string_display_mappings}
NODE_CLASS_MAPPINGS = {**_json_class_mappings, **_string_class_mappings, **_image_class_mappings}
NODE_DISPLAY_NAME_MAPPINGS = {**_json_display_mappings, **_string_display_mappings, **_image_display_mappings}
WEB_DIRECTORY = "./web"