Files
da2el-ai-D2-nodes-ComfyUI/docs/en/node_image.md
T

3.2 KiB

English | 日本語 | 繁体中文

Node

🍅 Image Node

D2 Preview Image

  • Click the Popup Image button to display the full-screen gallery

D2 Load Image

  • Load Image node that can extract prompts from images
  • Compatible with images created in StableDiffusion webui A1111 and NovelAI
  • Includes a button to open mask editor

Input

  • image_path
    • Loads file when image path is input
    • Used for connection with D2 Folder Image Queue

Output

  • IMAGE / MASK
    • Image and mask
  • width / height
    • Image size
  • positive / negative
    • Prompts

Note: Prompts may not be retrievable depending on workflow configuration. For example, they cannot be retrieved without a node containing the string "KSampler" (e.g., Tiled KSampler).


D2 Load Folder Images

  • Batch loads and outputs images from a folder
  • Used with D2 Grid Image etc.
  • Use D2 Folder Image Queue for sequential processing

Input

  • folder
    • Specify folder in full path
  • extension
    • Specify like *.jpg to load only JPEG images
    • Can also specify patterns like *silver*.webp

D2 Folder Image Queue

  • Outputs paths of images in a folder
  • Automatically executes Queue for the number of images when Queue is run

Input

  • folder
    • Image folder
  • extension
    • Specify file name filter
    • *.*: All images
    • *.png: PNG format only
  • start_at
    • Image number to start processing
  • auto_queue
    • true: Automatically execute remaining Queues
    • false: Execute only once

Output

  • image_path
    • Full path of image

D2 Grid Image

  • Outputs grid images
  • Supports both horizontal and vertical alignment

Input

  • max_columns
    • Number of images to align horizontally
    • When swap_dimensions is true, this becomes the number of vertical images
  • grid_gap
    • Spacing between images
  • swap_dimensions
    • true: Vertical alignment
    • false: Horizontal alignment
  • trigger_count
    • Outputs grid image when the number of input images reaches this specified value
  • Image count
    • Number of input images
  • Reset Images
    • Discards all input images

D2 Image Stack

  • Outputs multiple input images together
  • Can input up to 50 images

Input

  • image_count
    • Can increase/decrease number of inputs. Maximum 50

D2 EmptyImage Alpha

  • Adds alpha channel (transparency) to EmptyImage