Visit ComfyUI Online for ready-to-use ComfyUI environment
Resize images for Qwen-Image-Edit, targeting 1 million pixels, balancing quality and performance, with configurable parameters for precise scaling.
QwenImageEditSimpleScale is a node designed to resize images to a resolution that is compatible with Qwen-Image-Edit, specifically targeting a resolution of approximately 1 million pixels. This node is particularly useful for artists and designers who need to adjust images to a specific size while maintaining a balance between quality and performance. The node allows you to configure the maximum side length and step alignment, ensuring that the resized image fits within the desired parameters without exceeding the target resolution. By using this node, you can efficiently prepare images for further editing or processing, making it an essential tool for workflows that require precise image scaling.
The image parameter is the input image that you want to resize. It is expected to be in a format that the node can process, typically an image tensor. This parameter is crucial as it serves as the base for all scaling operations performed by the node.
The resolution parameter determines the target resolution for the resized image, with a default value of 1024. It can range from a minimum of 512 to a maximum of 4096, with increments of 8. This parameter directly influences the scale factor applied to the image, affecting the final size and quality of the output.
The alignment parameter specifies the step alignment for the resizing process, with a default value of 32. It can vary from 8 to 256, with increments of 2. This parameter ensures that the dimensions of the resized image are aligned to a specific multiple, which can be important for compatibility with certain processing pipelines or display requirements.
The IMAGE output is the resized version of the input image, adjusted to the closest compatible resolution based on the specified parameters. This output is crucial for further processing or editing tasks, as it ensures the image is at the desired size and quality.
The width output provides the final width of the resized image. This value is important for understanding the dimensions of the output image and ensuring it meets the requirements of your project or workflow.
The height output gives the final height of the resized image. Like the width, this value is essential for verifying that the image dimensions align with your expectations and project needs.
resolution parameter to a value that closely matches your target output size while staying within the node's limits.alignment parameter to ensure that the resized image dimensions are compatible with other tools or display requirements, especially if you are working within a specific framework or application.alignment and resolution parameters to ensure they are set to appropriate values. Adjust them to avoid reducing the dimensions to zero during the alignment process.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.