EasyUse/Imagegenerated
Image Scale Down(imageScaleDown)
Scales a batch of images down to a specified target width and height.
image Scale Down
images
IMAGE
width
INT
height
INT
crop
COMBO
Easy Use
Description
Scales a batch of images down to a specified target width and height. This node is focused on downscaling, making it useful for reducing large images before further processing, display, or to create smaller previews.
Inputs
- images (IMAGE): The input image or batch of images to scale down.
- width (INT): The target width in pixels for the scaled-down output.
- height (INT): The target height in pixels for the scaled-down output.
- crop (COMBO): The cropping mode to apply after scaling. This controls how the image is fitted to the requested dimensions. When cropping is enabled, the image is scaled to cover the target size and then cropped to match exactly; when cropping is disabled, the image is resized directly to the specified width and height.
Outputs
- IMAGE: The scaled-down image or batch of images.
Usage Notes
- This node is intended for downscaling, not upscaling. For increasing image resolution, use a dedicated upscale node.
- The
cropsetting is important when the aspect ratio of the target size differs from the source image. With cropping enabled, the result will exactly match the requested dimensions. With cropping disabled, the image may be stretched if the target aspect ratio does not match the source. - Use positive integer values for
widthandheightto avoid invalid output dimensions.
Comments
Sign in with GitHub to join the discussion.