Nodes/ComfyUI_Burve_Tools/Burve Image Info
ComfyUI Node

Burve Image Info

Read an image's size and ratio in the middle of a graph

By Burve·Created 9 months ago·Updated 5 days ago· 5
Burve Image Info
  • image
  • info
  • width
  • height
  • aspect_ratio

Most of the time you don't need to know an image's dimensions mid-workflow. Then you hit the workflow where you do - the one where a crop has to stay at a specific ratio, or a generation has to match the size of a source image - and you suddenly want a node that just tells you. Burve Image Info is that node, and it's as plain as it sounds: one image in, its pixel size and a simplified aspect ratio out.

It reads the standard ComfyUI IMAGE tensor and reports four things. The info output is a human-readable string - Size: 1024x768 px and Aspect ratio: 4:3 - which is what you'll glance at in a text-preview or save node. Then there are the structured outputs you actually wire into other nodes: width and height as integers, and aspect_ratio as a simplified W:H string. The simplification matters: the node divides both dimensions by their greatest common divisor, so 1024×768 becomes 4:3, 1920×1080 becomes 16:9, and a square becomes 1:1 - a ratio you can hand to anything that expects W:H form.

Where it earns its place

The pack-specific use case: Burve Crop + Mask Load gives you a ratio string designed for the Gemini image nodes' aspect_ratio_override input, and this node produces the same kind of string from any image. So you can take an existing image, read its true ratio, and drive a generation that will match it - which is the crop-safe pattern these nodes are built around. Outside the pack it's a generic utility: check what a Load Image actually gave you, feed a ratio into a resize node, or debug why a batch came out with odd dimensions.

It's also flagged as an output node in the pack, so it plays fine at the end of a graph as a display-only check.

Install

Same pack as everything else in this suite. ComfyUI Manager → search ComfyUI_Burve_Tools → install → restart, or:

cd ComfyUI/custom_nodes
git clone https://github.com/Burve/ComfyUI_Burve_Tools.git
cd ComfyUI_Burve_Tools
pip install -r requirements.txt

No model files, no API key, no Google dependency - this node is pure tensor math and works even if you never touch the Gemini side of the pack. You do need ComfyUI 0.4.0+ because the pack as a whole requires it.

Gotchas

  • It takes an IMAGE, not a filename. Feed it the output of a Load Image node or any upstream node, not a path string.
  • Batch size is irrelevant to it - it reports the batch's frame dimensions, which is what you usually want.
  • The ratio is simplified, not exact. A 1024×767 image isn't 4:3 and won't simplify to a clean ratio; that's expected, not a bug.

It's a utility node, so don't expect drama. But it's the rare utility that pulls its weight: for a one-input node, the structured aspect_ratio output saves you from re-implementing gcd-based ratio math in a workflow for the tenth time.

CategoryBurveTools

Inputs (1)

NameTypeDefaultDescription
imageIMAGE

Outputs (4)

NameTypeDescription
infoSTRING
widthINT
heightINT
aspect_ratioSTRING