Image Aspect Ratio

节点中英文对比
Image Aspect Ratio
  • image
  • width
  • height
  • aspect_number
  • aspect_float
  • is_landscape_bool
  • aspect_ratio_common
  • aspect_type
  • Image Aspect Ratio
  • image
  • width
  • height
  • aspect_number
  • aspect_float
  • is_landscape_bool
  • aspect_ratio_common
  • aspect_type
  • Image Aspect Ratio - 参数说明
    输入参数
    image
    可选的图像输入接口,如果连接了图像,节点会自动读取该图像的宽度和高度作为计算的基础。
    width
    可选的数字输入接口(通常是整数),可以直接提供一个宽度值。
    height
    可选的数字输入接口(通常是整数),可以直接提供一个高度值。
    输出参数
    aspect_number
    宽高比数值,是浮点数 FLOAT,是通过 宽度 / 高度 计算得出的精确浮点数值。 如果大于1.0,表示横屏 (landscape),如果小于1.0,表示竖屏 (portrait),如果等于1.0,表示方形 (square)。
    aspect_float
    宽高比浮点数,为 FLOAT,与 aspect_number 完全相同,只是显式地标明了其浮点数类型,是通过 宽度 / 高度 计算的精确值。
    is_landscape_bool
    是否为横屏的布尔值,为 NUMBER (实际上用作布尔值)。如果图像是横屏,此输出为 1 (代表 True),如果图像是竖屏或方形,此输出为 0 (代表 False)。
    aspect_ratio_common
    常见宽高比字符串,为 TEXT (即 STRING)。这个输出将宽高比简化为最简整数比,并以 "宽:高" 的字符串格式表示。例如,对于 1920x1080 的图像,它会输出 16:9;对于 1024x1024 的图像,它会输出 1:1。
    aspect_type
    宽高比类型字符串,为 TEXT (即 STRING),用一个简单的英文单词来描述图像的朝向。landscape (横屏),portrait (竖屏),square (方形)。
    暂无节点说明
    节点列表 首页