Nodes/Bjornulf_custom_nodes/๐Ÿ“ Resize Image Percentage
ComfyUI Node

๐Ÿ“ Resize Image Percentage

Scale proportionally and get the new size back

By justUmenยทCreated 2 years agoยทUpdated about a year agoยท 545
๐Ÿ“ Resize Image Percentage
  • image
  • IMAGE
  • width
  • height
โ—„percentage50โ–บ

Sometimes you don't actually know or care what the exact output pixel dimensions should be - you just want the image at half size, or 150% size, or whatever ratio makes sense for the next step. This node does exactly that: one percentage slider instead of typing out width and height by hand. It's the sibling to the pack's plain Resize Image node, which wants exact pixel numbers; this one wants a scale factor.

How it works

You give it an image and a percentage, it scales both dimensions by that factor and hands back the resized image. Nothing exotic - the useful part is what it outputs alongside the image. Because it also reports the resulting width and height as separate INT outputs, you can chain those numbers straight into another node that needs to know the exact size - an Empty Latent Image node you want matched to the new resolution, a crop node, whatever - without doing the arithmetic yourself or reading pixel dimensions off a preview.

The inputs and outputs that matter

  • image (IMAGE) - the image to scale.
  • percentage (INT, default 50, range 1โ€“1000) - the scale factor. 50 halves it, 200 doubles it, and yes, you can go all the way up to 1000% if you really want a 10x blow-up (quality will be whatever your source can support, this node doesn't add detail).
  • Outputs: IMAGE (the resized image), plus width and height (INT) - the actual resulting pixel dimensions, handy for wiring into anything downstream that needs to know the exact size.

How to install it

Via ComfyUI Manager: search Bjornulf_custom_nodes, install, restart. Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/justUmen/Bjornulf_custom_nodes
cd Bjornulf_custom_nodes && pip install -r requirements.txt

then restart ComfyUI. This node itself is lightweight image math with no special dependency, but the install pulls in the shared requirements.txt for the whole 170-node pack (Ollama, FFmpeg, sound handling, and more), since it's all one repository.

Common issues & troubleshooting

You wired the wrong output into a downstream node. It's easy to grab IMAGE when you meant width or vice versa, since all three sit right next to each other on the node. If a connected node errors on type mismatch, check you didn't cross the wires.

Upscaling past 100% with no quality gain. This is a plain resample, not an AI upscaler - pushing percentage well above 100 just interpolates pixels, it won't invent detail. If you need a real quality upscale, this isn't that node; it's for quick proportional resizing, not enhancement.

Behavior shifts after a pack update. Like the rest of Bjornulf_custom_nodes, this ships under active, fast-moving development - the README says so outright. If something about sizing changes after an update, check the changelog rather than assume you misconfigured something.

CategoryBjornulf

Inputs (2)

NameTypeDefaultDescription
imageIMAGEโ€”
percentageINT501โ€“1000โ€”

Outputs (3)

NameTypeDescription
IMAGEIMAGEโ€”
widthINTโ€”
heightINTโ€”