Visit ComfyUI Online for ready-to-use ComfyUI environment
Create mirrored versions of images horizontally or vertically for artistic symmetry and aesthetic effects without complex editing.
The ImageMirror node is designed to provide a simple yet powerful way to create mirrored versions of images, either horizontally or vertically. This node is particularly useful for artists and designers who want to explore symmetry in their artwork or need to create mirrored effects for aesthetic purposes. By flipping the image along the specified axis, the node allows you to easily achieve a mirrored look without the need for complex image editing software. The ImageMirror node is an essential tool for enhancing creativity and adding a unique touch to your visual projects.
The image
parameter is the primary input for the ImageMirror node, and it expects a tensor representation of the image you wish to mirror. This parameter is crucial as it provides the visual data that will be manipulated by the node. The input must be a torch.Tensor
type, ensuring compatibility with the node's processing functions. The image should be pre-processed and ready for transformation, as the node will directly apply the mirroring effect based on the specified mirror_type
.
The mirror_type
parameter determines the axis along which the image will be mirrored. It offers two options: "horizontal" and "vertical". Choosing "horizontal" will flip the image from left to right, creating a mirror effect along the vertical axis. Conversely, selecting "vertical" will flip the image from top to bottom, creating a mirror effect along the horizontal axis. This parameter is essential for defining the direction of the mirroring effect, allowing you to customize the output according to your artistic needs.
The output of the ImageMirror node is an IMAGE
, which is a tensor representing the mirrored version of the input image. This output retains the original image's dimensions and color information but reflects the specified mirroring transformation. The mirrored image can be used directly in your projects or further processed with other nodes to achieve more complex visual effects. The output is crucial for visualizing the impact of the mirroring operation and integrating it into your creative workflow.
torch.Tensor
.torch.Tensor
before passing it to the node. You can use libraries like NumPy and PyTorch to handle this conversion.mirror_type
parameter is set to a value other than "horizontal" or "vertical".mirror_type
parameter and ensure it is set to either "horizontal" or "vertical" to avoid this error.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.