Files
Marco 793402f93f feat: add LTXV Multi Concat nodes and metadata extraction image loaders
This commit introduces several new performance-oriented custom nodes and utilities:

- Added LTXV Multi Concat and LTXV Multi Concat (beta) for faster frame injection using latent inpainting logic.

- Refactored LTXV index resolution logic into ltxv_utils.py.

- Updated ImageListSampler to anchor edge frames properly and support output index normalization scaling via target_frames.

- Added metadata-based prompt extraction image loaders (LoadImageAndExtractPrompt, FolderImageAndExtractPrompt, and FolderImageMetadataByName).

- Included animation tracking and camera switcher nodes.
2026-04-15 15:55:48 -03:00

34 lines
1007 B
Python

import sys
import os
import types
# Mock folder_paths
mock_folder_paths = types.ModuleType("folder_paths")
sys.modules["folder_paths"] = mock_folder_paths
# Add project root to sys.path
sys.path.insert(0, r"f:\AppsCrucial\ComfyUI_phoenix3\ComfyUI\custom_nodes\ComfyUI-AnotherUtils")
from loaders.utils import PromptExtractor
from PIL import Image
import json
def test_extraction():
image_path = r"f:\AppsCrucial\ComfyUI_phoenix3\ComfyUI\custom_nodes\ComfyUI-AnotherUtils\reference\comfyui_output.png"
img = Image.open(image_path)
# Test shared utility directly
extracted = PromptExtractor.extract_from_image(img)
print(f"Refactored Extraction Test Results:")
print(f"Target: enhance and restore it")
print(f"Extracted: {extracted}")
if extracted == "enhance and restore it":
print("SUCCESS: Refactored logic works for reference image.")
else:
print("FAILURE: Refactored logic failed.")
if __name__ == "__main__":
test_extraction()