ComfyUI  >  Nodes  >  GraftingRayman >  GR Tile and Border Image Random Flip

ComfyUI Node: GR Tile and Border Image Random Flip

Class Name

GR Tile and Border Image Random Flip

Category
GraftingRayman/Tiles
Author
GraftingRayman (Account age: 193 days)
Extension
GraftingRayman
Latest Updated
7/23/2024
Github Stars
0.0K

How to Install GraftingRayman

Install this extension via the ComfyUI Manager by searching for  GraftingRayman
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter GraftingRayman in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

GR Tile and Border Image Random Flip Description

Create tiled image patterns with borders and random flip effects for artistic experimentation and unique visual effects.

GR Tile and Border Image Random Flip:

The GR Tile and Border Image Random Flip node is designed to create a tiled version of an input image with optional borders and a random flip effect applied to one of the tiles. This node is particularly useful for generating complex patterns and textures by repeating an image in a grid format while introducing variability through random flipping. The addition of borders around each tile can enhance the visual separation and aesthetic appeal of the pattern. The main goal of this node is to provide a flexible and creative way to manipulate images for artistic purposes, allowing you to experiment with different configurations to achieve unique visual effects.

GR Tile and Border Image Random Flip Input Parameters:

image

This parameter represents the input image that you want to tile and manipulate. The image should be in a tensor format with dimensions corresponding to batch size, height, width, and channels. The quality and resolution of the input image will directly affect the output.

rows

This parameter specifies the number of rows in the tiled output. It determines how many times the input image will be repeated vertically. The minimum value is 1, and there is no strict maximum value, but it should be chosen based on the desired output size and computational limits.

columns

This parameter specifies the number of columns in the tiled output. It determines how many times the input image will be repeated horizontally. Similar to the rows parameter, the minimum value is 1, and the maximum value should be chosen based on the desired output size and computational limits.

colour

This parameter defines the color of the border that will be applied around each tile. The color should be specified in a format that the node can interpret, such as a string representing a color name or a tuple representing RGB values. The border color enhances the visual separation between tiles.

border

This parameter sets the thickness of the border around each tile. The value is specified in pixels, and the minimum value is 0, which means no border will be applied. The maximum value depends on the size of the input image and the desired visual effect.

border_thickness

This parameter determines the thickness of the red border applied to the randomly flipped tile. The value is specified in pixels, and it enhances the visual distinction of the flipped tile. The minimum value is 1, and the maximum value should be chosen based on the desired visual effect.

seed

This optional parameter allows you to set a seed for the random number generator used to determine which tile will be flipped. By setting a seed, you can ensure reproducibility of the random flip effect. If not provided, a random seed will be used.

flipped_tile_image

This optional parameter allows you to provide a custom image to replace the randomly flipped tile. If not provided, the node will flip the original tile horizontally. This parameter offers additional flexibility for creative manipulation.

GR Tile and Border Image Random Flip Output Parameters:

new_image

This output parameter represents the final tiled image with the optional borders and the random flip effect applied. The dimensions of the output image will depend on the input image size, the number of rows and columns, and the border thickness. This image can be used directly in your artistic projects or further processed.

inverted_image

This output parameter provides an inverted version of the final tiled image, where the colors are inverted. This can be useful for creating contrasting effects or for further creative manipulation. The dimensions of the inverted image will match those of the new_image.

GR Tile and Border Image Random Flip Usage Tips:

  • Experiment with different values for the rows and columns parameters to create various grid patterns and textures.
  • Use the border and colour parameters to add visual separation and enhance the aesthetic appeal of the tiled image.
  • Set the seed parameter to ensure reproducibility of the random flip effect, especially if you want to achieve consistent results across different runs.
  • Provide a custom flipped_tile_image to introduce unique variations and further customize the output.

GR Tile and Border Image Random Flip Common Errors and Solutions:

"Input image size mismatch"

  • Explanation: This error occurs when the input image dimensions do not match the expected format.
  • Solution: Ensure that the input image is in the correct tensor format with dimensions corresponding to batch size, height, width, and channels.

"Invalid border color"

  • Explanation: This error occurs when the specified border color is not in a recognizable format.
  • Solution: Verify that the border color is specified correctly, either as a string representing a color name or a tuple representing RGB values.

"Border thickness too large"

  • Explanation: This error occurs when the specified border thickness exceeds the dimensions of the input image.
  • Solution: Reduce the border thickness value to ensure it fits within the dimensions of the input image.

"Custom flipped tile image size mismatch"

  • Explanation: This error occurs when the custom flipped tile image does not match the dimensions of the original tile.
  • Solution: Ensure that the custom flipped tile image has the same dimensions as the original tile to maintain consistency in the output.

GR Tile and Border Image Random Flip Related Nodes

Go back to the extension to check out more related nodes.
GraftingRayman
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.