6.4 KiB
6.4 KiB
- Top
- Node / Image Node / Text Node / XYPlot Node / Float Palet
- Workflow
Node
🍅 Image Node
D2 Preview Image
- Click the
Popup Imagebutton to display the full-screen gallery
D2 Save Image
- An image saving node with full-screen gallery functionality, similar to
D2 Preview Image
Input
Popup Image: Clicking the button displays a full-screen gallerypreview_only: When true, images are only previewed without being saved
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 Imageetc. - Use
D2 Folder Image Queuefor sequential processing
Input
folder- Specify folder in full path
extension- Specify like
*.jpgto load only JPEG images - Can also specify patterns like
*silver*.webp
- Specify like
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_queuetrue: Automatically execute remaining Queuesfalse: 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_dimensionsistrue, this becomes the number of vertical images
grid_gap- Spacing between images
swap_dimensionstrue: Vertical alignmentfalse: 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
- Combines multiple input images into a batch
- Can be used with D2 Grid Image and others
- Maximum of 50 inputs
D2 Image Mask Stack
- Combines multiple input images and masks into a batch
- Essentially D2 Image Stack with added mask support
D2 EmptyImage Alpha
- Adds alpha channel (transparency) to EmptyImage
D2 Mosaic Filter
- Applies a mosaic filter
- Adjustable transparency, brightness, and color inversion options
D2 Cut By Mask
- Cut an image using a mask
- Can specify the output shape, size, margins, etc.
Input
images: Source image to cut frommask: Maskcut_type: Shape of the cut imagemask: Cut according to the mask shaperectangle: Calculate and cut a rectangle from the mask shapesquare_thumb: Cuts out the maximum-sized square. A mode intended for thumbnails
output_size: Output image sizemask_size: Mask sizeimage_size: Input image size (surroundings become transparent while preserving the input image position)
padding: Number of pixels to expand the mask area (default 0)min_width: Minimum width of mask size (default 0)min_height: Minimum height of mask size (default 0)output_alpha: Whether to include alpha channel in the output image
output
image: Image cut by the mask areamask: Maskrect: Cut rectangular area
D2 Paste By Mask
- Composite images using masks or rectangular areas created with D2 Paste By Mask
- Can specify blur width, paste shape, etc.
Input
img_base: Base image (batch compatible)img_paste: Image to paste (batch compatible)paste_mode: Determines how to trim img_paste and the paste coordinatesmask: Mask img_paste with mask_opt and paste at position x=0, y=0 (mask shape pasting)rect_full: Trim img_paste to the size of rect_opt and paste at the position of rect_opt (rectangular pasting)rect_position: Paste img_paste at the position of rect_opt (rectangular pasting)rect_pos_mask: Mask img_paste with mask_opt and paste at the position of rect_opt (mask shape pasting)
multi_mode: Processing method when either or both of img_base and img_paste have multiple imagespair_last: Process img_base and img_paste pairs from the beginning with the same index. If one has fewer images, the last image is usedpair_only: Same as pair_last. If one has fewer images, an error is displayed and processing stopscross: Process all combinations
input optional:
mask_opt: Maskrect_opt: Rectangular areafeather: Number of pixels to blur the edge (default 0)
output
image: Composited image
About multi_mode
pair_last and pair_only output the same ordered images from img_base and img_paste as pairs.
cross outputs all combinations.