readme
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# ComfyUI-RenderRiftNodes
|
||||
|
||||
## Description
|
||||
Hey everyone! I've whipped up a cool little node pack for ComfyUI. It's just a few nodes I made for myself, but I think they're pretty neat. We've got three main players here. First, there’s the Custom Output Folder String Generator for keeping your files tidy. Next, the LoadImageWithMetadata node – it’s a real game changer because it lets you pull up image metadata, which is perfect for the third node, the Image Metadata Overlay Node. This one lets you overlay that metadata right onto your images. LoadImageWithMetadata was actually made specifically to get the Metadata Overlay Node working.
|
||||
|
||||
## Examples
|
||||
TBC
|
||||
+1
-1
@@ -9,7 +9,7 @@ NODE_CLASS_MAPPINGS = {
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"DateIntegerNode": "Customer Date Folder Format",
|
||||
"MetadataOverlayNode": "Image & Metadata Overlay Node",
|
||||
"MetadataOverlayNode": "Image Metadata Overlay Node",
|
||||
"LoadImageWithMeta": "LoadImageWithMeta",
|
||||
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ import numpy as np
|
||||
import json
|
||||
import textwrap
|
||||
from PIL import Image, ImageOps, ImageDraw, ImageFont
|
||||
from tinytag import TinyTag
|
||||
import folder_paths
|
||||
|
||||
def process_text(anything):
|
||||
@@ -32,7 +31,7 @@ class MetadataOverlayNode:
|
||||
"loras": ("BOOLEAN", {"default": False}),
|
||||
},
|
||||
"optional": {
|
||||
"origonal_vid_optional": ("IMAGE",),
|
||||
"original_vid_optional": ("IMAGE",),
|
||||
"image3": ("IMAGE",),
|
||||
"metadata3": ("METADATA",),
|
||||
"image4": ("IMAGE",),
|
||||
@@ -119,7 +118,7 @@ class MetadataOverlayNode:
|
||||
animdiff=False,
|
||||
ipadpter=False,
|
||||
loras=False,
|
||||
origonal_vid_optional=None,
|
||||
original_vid_optional=None,
|
||||
image3=None,
|
||||
metadata3=None,
|
||||
image4=None,
|
||||
@@ -131,8 +130,8 @@ class MetadataOverlayNode:
|
||||
):
|
||||
|
||||
images_and_metadata = []
|
||||
if origonal_vid_optional is not None:
|
||||
images_and_metadata.append((origonal_vid_optional, "Original Video"))
|
||||
if original_vid_optional is not None:
|
||||
images_and_metadata.append((original_vid_optional, "Original Video"))
|
||||
|
||||
|
||||
# Extend the list with other image and metadata pairs
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Pillow
|
||||
Reference in New Issue
Block a user