- Create MetaManLoadImage node that loads images with metadata preserved - Extracts ComfyUI workflow/prompt data directly from PNG files - Returns both image tensor and metadata JSON - Update MetaManUniversalNodeV2 to accept optional metadata_json input - Prioritize metadata from load image node over PIL extraction - Register new node in both metaman.py and __init__.py Solves metadata stripping issue by reading files before ComfyUI processing.
31 lines
1012 B
Python
31 lines
1012 B
Python
"""
|
|
MetaMan - ComfyUI Custom Node Package
|
|
Universal metadata management for AI image generation platforms
|
|
"""
|
|
|
|
from .metaman import MetaManUniversalNodeV2, MetaManLoadImage
|
|
from .specialized_nodes import MetaManWorkflowSaver, MetaManDependencyResolver
|
|
|
|
# Combine all node mappings
|
|
NODE_CLASS_MAPPINGS = {
|
|
"MetaManUniversalNodeV2": MetaManUniversalNodeV2,
|
|
"MetaManLoadImage": MetaManLoadImage,
|
|
"MetaManWorkflowSaver": MetaManWorkflowSaver,
|
|
"MetaManDependencyResolver": MetaManDependencyResolver
|
|
}
|
|
|
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
|
"MetaManUniversalNodeV2": "MetaMan Universal V2",
|
|
"MetaManLoadImage": "MetaMan Load Image",
|
|
"MetaManWorkflowSaver": "MetaMan Workflow Saver",
|
|
"MetaManDependencyResolver": "MetaMan Dependency Resolver"
|
|
}
|
|
|
|
# Export for ComfyUI
|
|
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
|
|
|
|
# Package info
|
|
__version__ = "1.0.0"
|
|
__author__ = "MetaMan Development Team"
|
|
__description__ = "Universal metadata management for AI image generation platforms"
|