View Image Properties-SG
The passthrough node that tells you what your tensor is
- image
- image
- batch_count
- width
- height
- width_ratio
- height_ratio
- Resolution_in_MP
Sometimes you don't need to load, preview, or save anything. You just need to know what the image flowing through your pipeline actually is. That's this node: an IMAGE goes in, the exact same IMAGE comes out, and in between it prints the dimensions, megapixels, aspect ratio, batch count, and tensor size on the node itself. No upload, no file picker, no save dialog - it's the minimal member of this pack, and honestly the one you'll most often drop in when debugging.
It's the node I'd reach for mid-workflow when something's off. Your batch sampler produced far more frames than you expected? This tells you the batch count. You upscaled and want to confirm the output really hit the target resolution before it reaches the save node? It shows you in place. You're about to feed an image into something with a resolution requirement and want to check the aspect ratio against a 16:9 target? The node reduces it with a GCD and matches it against a table of standard ratios. It's a live status readout you can splice anywhere, because the passthrough never disturbs the data.
How it works
Boring on purpose: it's a passthrough with a calculator attached. On execution it reads the tensor shape - batch, height, width, channels - computes megapixels, reduces the aspect ratio, and paints a few lines of text onto the canvas via the pack's JS extension. The "Tensor Size" it reports is the uncompressed float32 footprint in memory (width × height × channels × 4 bytes × batch), so it's a rough VRAM estimate, not what the file will weigh. Same display trick as the pack's other nodes, and the same caveat: the numbers only appear after the node runs.
Inputs and outputs
One input, image (an IMAGE tensor). Outputs are the passthrough plus the numbers:
image- the untouched tensor; wire it onward.batch_count- number of images in the batch.width,height- pixel dimensions.width_ratio,height_ratio- simplified aspect ratio as two floats (16.0 and 9.0 for 16:9).Resolution_in_MP- megapixels.
Installing it
Standard pack install: Manager → Custom Nodes Manager → search "ComfyUI-Image_Properties_SG" → Install → restart, or clone into custom_nodes:
cd ComfyUI/custom_nodes
git clone https://github.com/ShammiG/ComfyUI-Image_Properties_SG
No dependencies beyond what ComfyUI ships, no models, no keys. Search for "View Image Properties-SG" after restart.
One frontend caveat applies to every node in this pack: on ComfyUI 0.3.76+, Node 2.0 must be switched off or the property text won't render - the JS targets the older canvas API, and the author has said a port is a ~2000-line job he isn't taking on. If the node passes images through fine but shows no numbers, that's the cause. And remember the passthrough still works, so the node won't break your workflow - it'll just go quiet.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — |
Outputs (7)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| batch_count | INT | — |
| width | INT | — |
| height | INT | — |
| width_ratio | FLOAT | — |
| height_ratio | FLOAT | — |
| Resolution_in_MP | FLOAT | — |