Visit ComfyUI Online for ready-to-use ComfyUI environment
Shift image position by percentage on x and y axes for precise layout control and pattern creation.
The OffsetImage node is designed to shift or "offset" an image by a specified percentage along the x and y axes. This operation is particularly useful for creating seamless tiles or for artistic effects where you need to reposition the content of an image without altering its dimensions. By adjusting the offset percentages, you can control how much of the image is moved horizontally and vertically, allowing for precise manipulation of the image's layout. This node is essential for tasks that require image alignment or pattern creation, providing a straightforward method to achieve these effects.
This parameter represents the input image that you want to offset. The image should be in a format that the node can process, typically a tensor representation of the image.
This parameter controls the horizontal offset of the image as a percentage of the image's width. The value ranges from 0.0 to 100.0, with a default of 50.0. A value of 0.0 means no horizontal shift, while 100.0 means the image is shifted by its entire width.
This parameter controls the vertical offset of the image as a percentage of the image's height. The value ranges from 0.0 to 100.0, with a default of 50.0. A value of 0.0 means no vertical shift, while 100.0 means the image is shifted by its entire height.
The output is the offset image, which is the original image shifted according to the specified x and y percentages. The dimensions of the image remain unchanged, but the content is repositioned based on the offset values.
x_percent
and y_percent
to 50.0. This will shift the image by half its width and height, making the edges align perfectly when tiled.x_percent
and y_percent
values to achieve unique artistic effects, such as creating patterns or aligning specific elements within the image.x_percent
or y_percent
are outside the allowed range of 0.0 to 100.0.x_percent
and y_percent
values to be within the range of 0.0 to 100.0.© Copyright 2024 RunComfy. All Rights Reserved.