Commit Graph
1 Commits
Author SHA1 Message Date
LuqP2 238e458de6 feat: Implement MetaHub Save Image node for ComfyUI
Complete implementation of advanced image saving node with dual metadata:
- A1111/Civitai compatible metadata (tEXt chunk "parameters")
- Image MetaHub metadata (iTXt chunk "imagemetahub_data")
- Auto-detection of LoRAs from workflow (UI and API formats)
- SHA256 hash calculation (AutoV2/Civitai format) with caching
- Graceful degradation (never interrupts generation)
- IMH Pro fields support (user_tags, notes, project_name)
- Auto-increment filenames with customizable output paths

Files added:
- metahub_save_node.py: Main node class with INPUT_TYPES
- metadata_utils.py: Hash calculation, metadata formatting, PNG injection
- __init__.py: Node registration for ComfyUI
- requirements.txt: Dependencies (Pillow, numpy)
- README.md: Installation and usage documentation

100% compatible with Image MetaHub comfyUIParser.ts specification.
2025-12-19 20:59:47 -03:00