Visit ComfyUI Online for ready-to-use ComfyUI environment
Blend two images for smooth transition animations with customization options.
The Create Morph Image node is designed to seamlessly blend two images together, creating a smooth transition effect between them. This node is particularly useful for generating animated GIFs that morph from one image to another, providing a visually appealing transformation. By leveraging this node, you can create engaging visual content that captures the gradual change from one image to another, making it ideal for artistic projects, presentations, and creative animations. The node handles the complex process of image interpolation, ensuring a smooth and natural transition, and offers various customization options to control the duration, frame count, and looping behavior of the resulting animation.
This parameter accepts a list of images that you want to morph. The images should be provided in a sequence, as the node will create transitions between each consecutive pair of images in the list. The quality and resolution of the input images will directly affect the final output.
This parameter defines the number of intermediate frames to generate between each pair of images. A higher number of steps will result in a smoother transition but will also increase the processing time and the size of the output file. The default value is 10, with a minimum of 2 and a maximum of 60.
This parameter sets the maximum size (in pixels) for the output images. If the input images are larger than this size, they will be resized to fit within these dimensions while maintaining their aspect ratio. The default value is 512 pixels.
This parameter specifies the number of times the animation should loop. A value of 0 means the animation will loop indefinitely. This is useful for creating continuous animations. The default value is 0.
This parameter determines the duration (in milliseconds) for which each still image (the original images before and after the transition) will be displayed in the animation. The default value is 30 milliseconds.
This parameter sets the duration (in seconds) for each transition frame. A shorter duration will make the transition faster, while a longer duration will slow it down. The default value is 0.1 seconds.
This parameter specifies the directory where the output GIF file will be saved. If the directory does not exist, it will be created. The default path is ./ComfyUI/output
.
This parameter defines the name of the output file without the extension. The default filename is "morph".
This parameter sets the format of the output file. Currently, the supported format is "GIF".
This output parameter returns the list of input images, which can be used for further processing or reference.
This output parameter provides the path to the generated GIF file. It includes the full path and filename, allowing you to easily locate and use the output file.
This output parameter returns the name of the output file without the extension. This can be useful for logging or further processing.
steps
parameter, but be mindful of the increased processing time and file size.max_size
parameter to ensure that your output GIF is not too large, especially if you are working with high-resolution images.duration
and still_duration
parameters to find the optimal timing for your animation, making it either faster or slower based on your needs.loop
parameter to 0 for continuous animations, which can be useful for creating looping GIFs for social media or presentations.<output_file>
due to the following error:output_path
parameter is set to a valid directory and that you have write permissions for that directory. Verify that the directory exists or can be created.steps
, duration
, and max_size
parameters are within their valid ranges.© Copyright 2024 RunComfy. All Rights Reserved.