floyo logobeta logo
Powered by
ThinkDiffusion
floyo logobeta logo
Powered by
ThinkDiffusion

ygo_tools

0

Last updated
2025-05-14

A custom node for ComfyUI designed to facilitate the horizontal tiling of images with adjustable spacing. This tool enhances image processing capabilities within the ComfyUI environment, allowing for more precise control over how images are arranged.

  • Enables detection of isolated regions within images that are not connected to the edges, aiding in more accurate image analysis.
  • Provides a method to paste content into a defined frame while respecting the original aspect ratio and transparency, ensuring high-quality compositing.
  • Offers adjustable parameters for thresholding and connectivity, allowing users to fine-tune the image processing for various scenarios.

Context

This tool is a set of custom nodes for ComfyUI that focuses on image manipulation. Its primary purpose is to enhance image processing workflows by providing specialized functionalities that allow for the detection of inner boxes and the pasting of images into frames, making it easier for users to manage and arrange their images effectively.

Key Features & Benefits

The tool includes features like the 'Detect Inner Box' node, which identifies white areas in a mask that aren't connected to the edges, returning the dimensions of the smallest enclosing rectangle. The 'Paste Into Frame' node allows users to scale content images based on the size of a central rectangle defined by a mask, ensuring that the content maintains its original aspect ratio and handles transparency correctly. These features are crucial for tasks that require precise image layout and manipulation.

Advanced Functionalities

The tool supports parameters such as thresholding and connectivity, which can be adjusted to refine the detection and pasting processes. The threshold parameter determines the sensitivity of the mask detection, while the connectivity parameter (either 4 or 8) defines how pixels are connected in the mask, offering flexibility in how isolated regions are identified and processed.

Practical Benefits

By integrating these functionalities into ComfyUI, users gain enhanced control over their image processing tasks, allowing for improved workflow efficiency and quality of output. The ability to detect isolated regions and accurately paste images into frames streamlines the creative process, making it easier to achieve the desired results without extensive manual adjustments.

Credits/Acknowledgments

The tool was developed by the original author, with contributions from the community. It is open-source and available under a suitable license, promoting collaboration and further enhancements.