Visit ComfyUI Online for ready-to-use ComfyUI environment
Image Resize for ComfyUI offers tools to resize images while maintaining their proportions, eliminating the need for manual calculations. It also ensures that any accompanying mask is resized and adjusted in sync with the image.
The image-resize-comfyui
extension is a powerful tool designed to help AI artists resize images effortlessly while maintaining their original proportions. This extension is particularly useful for those who need to adjust image sizes without distorting the content, making it ideal for preparing images for various applications, such as digital art, animation, and more. By using this extension, you can resize images and their associated masks seamlessly, ensuring that your creative workflow remains smooth and efficient.
The image-resize-comfyui
extension operates by providing a set of configurable options that allow you to resize images based on specific criteria. The extension ensures that the aspect ratio of the image is preserved, preventing any unwanted distortion. If a mask is present, it is resized and modified along with the image, ensuring consistency across all elements of your artwork.
Think of it as a smart resizing tool that understands the importance of maintaining the visual integrity of your images. Whether you need to scale up or down, crop, or pad your images, this extension offers the flexibility to do so without manual calculations.
side_ratio
setting is ignored in this mode.side_ratio
.side_ratio
.smaller_side
is set to 1024, the image will be resized to 1024x1536 pixels.larger_side
is set to 1024, the image will be resized to 683x1024 pixels.This setting determines the required aspect ratio of the image when cropping or padding is enabled. The format is width:height
, such as 4:3
or 2:3
. You can also set an explicit size, like 512:768
, to ensure the resulting image always matches these dimensions.
0.0
means only the right/bottom side is cropped, while 1.0
means only the left/top side is cropped. Intermediate values distribute the cropping proportionally.0.0
means all padding is on the right/bottom side, while 1.0
means all padding is on the left/top side. Intermediate values distribute the padding proportionally.This setting allows mask transparency to partially expand into the original image for a specified number of pixels. This helps avoid visible borders if the image is later inpainted.
action
setting is correctly configured to maintain the aspect ratio.smaller_side
, larger_side
, scale_factor
) is enabled at a time.crop_pad_position
setting to ensure it is set as intended.Why is my image not resizing? Ensure that one of the size settings is enabled and set to a non-zero value.
How do I maintain the original aspect ratio?
Use the resize only
action mode to keep the aspect ratio intact.
For additional resources, tutorials, and community support, consider visiting the following:
image-resize-comfyui
extension and enhance your creative projects.© Copyright 2024 RunComfy. All Rights Reserved.