Visit ComfyUI Online for ready-to-use ComfyUI environment
Manipulate image position by shifting it horizontally and vertically, useful for creating dynamic compositions and adjusting element alignment.
The LayerUtility: ImageShift node is designed to manipulate the position of an image by shifting it horizontally and vertically. This node is particularly useful for AI artists who want to create dynamic compositions or adjust the alignment of elements within an image. By shifting the image, you can create interesting visual effects, correct misalignments, or prepare images for further processing. The node offers flexibility with options to handle the image edges, such as cyclic repetition or filling with a background color, and it can also generate masks to manage borders and transparency. This makes it a versatile tool for enhancing your creative workflow.
This parameter represents the input image that you want to shift. It is required and should be provided in an appropriate image format.
This parameter controls the horizontal shift of the image. The value is an integer, with a default of 256, and it can range from -9999 to 9999. Positive values shift the image to the right, while negative values shift it to the left.
This parameter controls the vertical shift of the image. The value is an integer, with a default of 256, and it can range from -9999 to 9999. Positive values shift the image downwards, while negative values shift it upwards.
This boolean parameter determines whether the image should repeat cyclically when shifted. The default value is True. When enabled, the image will wrap around, creating a seamless effect. When disabled, the shifted areas will be filled with the background color.
This parameter specifies the color used to fill the areas exposed by the shift when cyclic is set to False. The value is a string representing a color code, with a default of "#000000" (black).
This parameter defines the width of the border mask in pixels. The value is an integer, with a default of 20, and it can range from 0 to 999. The border mask helps in managing the edges of the shifted image.
This parameter controls the blur applied to the border mask. The value is an integer, with a default of 12, and it can range from 0 to 999. Blurring the border mask can help in creating smoother transitions at the edges.
This optional parameter allows you to provide a mask that defines which parts of the image should be affected by the shift. If not provided, the entire image will be shifted.
This output parameter provides the shifted image. The image will be adjusted according to the specified shift_x and shift_y values, and other input parameters.
This output parameter provides the mask used during the shifting process. If an input mask was provided, it will be adjusted according to the shift parameters. If no mask was provided, a default mask will be generated.
This output parameter provides the border mask, which helps in managing the edges of the shifted image. The border mask will be adjusted according to the border_mask_width and border_mask_blur parameters.
© Copyright 2024 RunComfy. All Rights Reserved.