A comprehensive ComfyUI custom node for managing, converting, and standardizing metadata across all major AI image generation platforms.
MetaMan bridges the metadata gap between AI image generation services, enabling seamless workflow sharing and model dependency tracking across platforms.
- Universal Metadata Extraction: Read metadata from any AI image generation service
- Cross-Platform Workflow Generation: Convert ANY platform's metadata into working ComfyUI workflows that recreate identical images
- Bidirectional Format Conversion: Convert metadata between A1111, ComfyUI, Civitai, Tensor.AI, Leonardo.AI, and more
- Complex Workflow Preservation: Save and restore complete ComfyUI node graphs with full fidelity
- Model Dependency Tracking: Automatically identify and resolve model dependencies with download URLs
- Template-Based Extensibility: Easy addition of new services via YAML templates
β
Automatic1111 (A1111) - Full parameter format support
β
ComfyUI - Complete workflow preservation
β
Civitai - Enhanced resource tracking with model IDs
β
Forge - A1111-compatible with extensions
β
Tensor.AI - JSON-based metadata format
β
Leonardo.AI - Style and preset management
π SeaArt.AI - Coming soon
π Midjourney - Coming soon
-
Clone to ComfyUI custom nodes:
cd /path/to/ComfyUI/custom_nodes/ git clone <repository-url> MetaMan
-
Install dependencies:
cd MetaMan pip install -r requirements.txt -
Restart ComfyUI
The MetaMan Universal node will appear in the MetaMan category.
MetaMan uses a comprehensive universal metadata schema that encompasses all possible metadata fields from every supported platform. The system:
- Extracts metadata from source images regardless of origin platform
- Converts to universal format with field mapping and compatibility tracking
- Transforms to target platform format using service-specific templates
- Preserves original workflows and enables cross-platform reproduction
MetaMan enables true cross-platform workflow migration with two levels of fidelity:
β Simplified Workflow Generation:
- Takes metadata from ANY platform (A1111, Civitai, Tensor.AI, etc.)
- Generates a functional workflow that recreates the exact same image
- Works for all platforms β ComfyUI conversion
- Perfect for moving generations between platforms
β Complex Workflow Preservation:
- Preserves original ComfyUI node graphs with custom arrangements
- Maintains advanced techniques, custom nodes, and complex routing
- Only available for ComfyUI β ComfyUI workflows
- Essential for sharing sophisticated ComfyUI creations
Example: An A1111 image with LoRAs and specific sampling settings becomes a ComfyUI workflow with CheckpointLoader β LoraLoader β CLIPTextEncode β KSampler β VAEDecode that produces identical output.
The power of MetaMan lies in its template-driven architecture:
templates/
βββ universal_schema.yaml # Defines all possible metadata fields
βββ services/ # Service-specific output templates
βββ automatic1111.yaml
βββ comfyui.yaml
βββ civitai.yaml
βββ tensor.ai.yaml
βββ leonardo.ai.yaml
MetaMan introduces a standardized "meta" PNG chunk containing universal metadata in JSON format, enabling perfect cross-platform compatibility while maintaining service-specific formats.
# Extract universal metadata from any image
operation: "extract_universal"
target_service: "automatic1111"
# β Outputs: universal JSON + A1111 parameter string
# Convert A1111 image to working ComfyUI workflow
operation: "convert_to_service"
target_service: "comfyui"
# β Generates functional ComfyUI workflow that recreates identical image# Take any A1111/Civitai image and create ComfyUI workflow
input: A1111_image_with_metadata.png
operation: "convert_to_service"
target_service: "comfyui"
# β Output: Complete ComfyUI workflow JSON that produces same result
# Convert complex ComfyUI workflow to A1111 parameters
input: ComfyUI_workflow_image.png
operation: "convert_to_service"
target_service: "automatic1111"
# β Output: A1111-compatible parameter string (simplified but equivalent)operation: "generate_dependencies"
dependency_sources: "all" # Searches Civitai, HuggingFace, etc.
# β Returns JSON with download URLs and model informationoperation: "save_workflow"
output_format: "embed_in_image"
# β Embeds complete workflow back into the original imageRequired:
image- Input image with metadataoperation- Operation type:extract_universal- Extract to universal formatconvert_to_service- Convert to specific servicesave_workflow- Save workflow datagenerate_dependencies- Create dependency listexport_metadata- Export in various formats
target_service- Target platform for conversion
Optional:
output_format- Output format (png_chunk, json_file, txt_file, embed_in_image)template_override- Custom template pathinclude_workflow- Include workflow datainclude_dependencies- Include model dependenciesdependency_sources- Dependency search sources
image- Processed image (possibly with embedded metadata)universal_metadata- Complete universal format JSONservice_metadata- Target service formatted metadatadependencies- Model dependency information with download URLs
Each service template includes:
- Field mappings - Automatic parameter translation
- Validation rules - Ensure platform compatibility
- Format specifications - Proper encoding and chunk handling
- Model resolution - Platform-specific model identification
Adding new platforms is straightforward:
- Create a new YAML template in
templates/services/ - Define field mappings and output format
- Add to
SUPPORTED_SERVICESlist - MetaMan automatically incorporates the new service
MetaMan tracks and resolves:
- Checkpoints/Base Models with SHA256 hashes
- LoRA models with weights and trigger words
- Embeddings/Textual Inversions
- VAE models
- ControlNet models
Priority search order: Civitai β HuggingFace β Other repositories
Source Image β Extract Native Metadata β Universal Schema β Target Template β Output Format
- Type checking for all metadata fields
- Range validation for numeric parameters
- Format verification for strings and arrays
- Compatibility checking across services
- Automatic encoding detection (Latin-1 vs UTF-8)
- Compression for large data (workflows, dependency lists)
- Fallback mechanisms for incompatible content
- Multiple chunk support (parameters + workflow + meta)
Metadata not detected:
- Ensure image contains compatible metadata chunks
- Check PNG format (some services use proprietary formats)
Conversion errors:
- Verify source service compatibility
- Check template configuration for target service
Missing dependencies:
- Install all requirements:
pip install -r requirements.txt - Restart ComfyUI after installation
Enable verbose logging by setting environment variable:
export METAMAN_DEBUG=1We welcome contributions to expand platform support and improve metadata handling!
- Research the service's metadata format
- Create a YAML template in
templates/services/ - Update the universal schema if new fields are needed
- Test with sample images from the service
- Submit a pull request
Service templates should include:
- Field mappings and transformations
- Output format specifications
- Validation rules
- PNG chunk configuration
- API integration hints (for future automation)
| Feature | A1111 | ComfyUI | Civitai | Forge | Tensor.AI | Leonardo.AI |
|---|---|---|---|---|---|---|
| Basic Parameters | β | β | β | β | β | β |
| Simplified Workflow* | β | β | β | β | β | β |
| Model Hashes | β | β | β | β | ||
| LoRA Support | β | β | β | β | β | β |
| Complex Workflow Preservation | β | β | β | β | β | β |
| Dependency URLs | β | β | β |
β
Full Support |
Simplified Workflow: MetaMan can generate a functional workflow from any platform's metadata that will recreate the exact same image. Complex workflows get simplified to basic generation steps, but output quality and reproducibility are maintained.*
[Specify your license here]
- ComfyUI team for the excellent node-based interface
- A1111 community for establishing metadata standards
- Civitai for advancing model sharing and compatibility
- All AI image generation platforms for pushing the boundaries of creativity
MetaMan: Making AI image metadata universal, accessible, and interoperable across all platforms.