Mirror:
The ComfyTV.MirrorStage node is designed to transform images by mirroring them either horizontally or vertically. This node is particularly useful for creating symmetrical effects or correcting image orientations in your projects. By providing options to flip images left to right or top to bottom, it offers flexibility in image manipulation, allowing you to achieve desired visual outcomes with ease. The MirrorStage node is part of the ComfyTV/Image category, emphasizing its role in image transformation tasks. Its primary goal is to enhance your creative workflow by offering straightforward yet powerful image flipping capabilities.
Mirror Input Parameters:
force_run_token
This parameter is used to force the execution of the node, ensuring that it runs even if there are no changes in the input. It is an integer value with a default of 0, and it typically does not require manual adjustment unless specific execution control is needed.
project_id
The project_id is a string parameter that identifies the project context in which the node is being used. It helps in organizing and managing different projects within the ComfyTV environment. There is no default value, and it should be set according to the specific project requirements.
parent_output_id
This integer parameter links the node to a specific output from a parent node, facilitating the flow of data between nodes. It defaults to 0 and should be set to match the output ID of the parent node you wish to connect.
flip_horizontal
A boolean parameter that determines whether the image should be flipped horizontally, swapping the left and right sides. The default value is False, meaning no horizontal flip is applied unless explicitly set to True. This option is useful for creating mirror images or correcting horizontal orientation.
flip_vertical
This boolean parameter controls the vertical flipping of the image, exchanging the top and bottom parts. It defaults to False, indicating no vertical flip unless set to True. This feature is beneficial for adjusting vertical orientation or achieving specific artistic effects.
image
The image parameter is an optional input that accepts the image to be transformed. It is crucial for the node's operation, as it provides the visual content to be mirrored. If not provided, the node will not perform any transformation.
Mirror Output Parameters:
image
The output parameter is the transformed image, which has been mirrored according to the specified input parameters. This output is crucial as it represents the final visual result of the node's operation, ready for further processing or final use in your project.
Mirror Usage Tips:
- To create a symmetrical effect, use both
flip_horizontalandflip_verticalparameters set to True, which will mirror the image in both directions. - Use the
flip_horizontalparameter to correct images that are oriented incorrectly from left to right, such as when dealing with mirrored text or objects. - The
flip_verticalparameter is particularly useful for adjusting images that need to be flipped upside down, such as when correcting the orientation of scanned documents or photos.
Mirror Common Errors and Solutions:
Image not provided
- Explanation: The node requires an image input to perform the mirroring operation.
- Solution: Ensure that an image is connected to the
imageinput parameter before executing the node.
Invalid project_id
- Explanation: The
project_idis not set correctly, which may cause issues in project organization. - Solution: Verify that the
project_idis correctly specified and matches the intended project context.
Parent output ID mismatch
- Explanation: The
parent_output_iddoes not correspond to a valid output from a parent node. - Solution: Check the parent node's outputs and ensure the
parent_output_idmatches the correct output ID.
