Resize Image (deprecated)
节点功能:用于调整图像的尺寸。Resize Image (deprecated)-
节点中英文对比
Resize Image (deprecated)
width
height
upscale_method
keep_proportion
divisible_by
crop
Resize Image (deprecated)
width
height
upscale_method
keep_proportion
divisible_by
crop
Resize Image (deprecated) - 参数说明
输入参数
image
要调整大小的输入图像。
width_input
可选传入的宽度。
height_input
可选传入的高度。
get_image_size
可选输入图像,将其宽高作为最终缩放尺寸(替代 width/height 参数)。
输出参数
IMAGE
缩放处理后的图像。
width
输出图像的最终宽度。
height
输出图像的最终高度。
控件参数
width
目标宽度,单位为像素。若为 0 则按比例自动计算。
height
目标高度,单位为像素。若为 0 则按比例自动计算。
upscale_method
插值算法,推荐选择 lanczos 获取更清晰缩放图像,bilinear 适合常规用途,area 在图像缩小时表现良好,bicubic 平滑过渡效果较好,nearest-exact 适合像素风格图像。
keep_proportion
是否保持原图比例进行缩放(优先使用较小边作为参考维度)
divisible_by
最终输出宽高是否强制可被该值整除。设置为 0 表示不启用该规则。
crop
裁剪模式:disabled 表示禁用裁剪,center 表示居中裁剪。
暂无节点说明