首页/ 节点库/ 图像比率
第三方插件 ComfyUI-Easy-Use

图像比率

用于计算图像的宽高比例。

ImageRatio 2026-01-30 收录 592 次浏览

节点中英文对比

ComfyUI 结构对照

按当前节点配置,分别展示中文与英文节点结构。面板按 ComfyUI 实际界面还原: 左侧圆点是输入,右侧圆点与该行最右的名称为输出,下方胶囊是控件参数; 控件两端的三角表示可切换的选项。

中文节点 5 项
图像比率
image width_ratio_int
height_ratio_int
width_ratio_float
height_ratio_float
英文节点 5 项
ImageRatio
image width_ratio_int
height_ratio_int
width_ratio_float
height_ratio_float
模型 条件 / 数值 Latent 其它类型 左圆点 = 输入,右圆点 = 输出 可切换选项 — 未设置默认值

面板用于对照参数位置与命名,不做交互;实际节点外观以 ComfyUI 内的主题为准。

参数说明

输入 1 · 输出 4

依据当前节点关联的 NodesItems 数据,按输入、输出、控件三类分别列出名称与说明。

输入参数 1 项
image image
输入图像张量。支持单张图像。
输出参数 4 项
width_ratio_int width_ratio_int
最简化后的宽度比例(整数)。
height_ratio_int height_ratio_int
最简化后的高度比例(整数)。
width_ratio_float width_ratio_float
与整数相同,保留为 float 类型。
height_ratio_float height_ratio_float
与整数相同,保留为 float 类型。

节点详解

原理 · 用法 · 常见问题
暂无节点说明

常见问题

按节点参数整理
图像比率是做什么的?
用于计算图像的宽高比例。
图像比率有哪些输入参数?
共 1 个输入,包括 image(image)。
图像比率的输出是什么?
共 4 个输出:width_ratio_int(width_ratio_int)、height_ratio_int(height_ratio_int)、width_ratio_float(width_ratio_float)、height_ratio_float(height_ratio_float)。
图像比率属于哪个节点包?
属于「ComfyUI-Easy-Use」,节点分类为「第三方插件」。

同类节点

ComfyUI-Easy-Use