ImageScaleBy_motorway_edition
Scale an image by a factor — lanczos included
- MOTORWAY 🚌💨
- MOTORWAY 🚌💨
Scaling by a factor is the resize you reach for when you don't care about an exact output size - you just want it 2x bigger or 0.5x smaller. ImageScaleBy_motorway_edition is stock ComfyUI's ImageScaleBy, wrapped for the MOTORWAY 🚌💨 pipe in agilly1989/ComfyUI_agilly1989_motorway.
It reads the image out of the pipe under INPUT_image_key (default "image"), scales it, and stores the result back under OUTPUT_IMAGE_key (default "IMAGE"). Only visible output is the Motorway pipe.
Inputs that matter
INPUT_image_key(default"image") - pipe key of the sourceupscale_method-nearest-exact,bilinear,area,bicubic,lanczosscale_by(FLOAT, 0.01 to 8, default 1) - the multiplierOUTPUT_IMAGE_key(default"IMAGE") - where the scaled image lands
The method choice is where the taste lives. For "just make it bigger without inventing anything," lanczos is the honest interpolator - it's what people mean when they say a plain resize, and the KB's upscaling essay backs that up: it adds no content, can't hallucinate, runs instantly. area is the downscale workhorse (good when shrinking). nearest-exact is for hard pixel-art scaling. And a blunt truth about this whole family of resize nodes: they don't add detail. If the image is soft, a factor-2 lanczos won't fix it - that's a job for a proper upscale model on a separate pass.
How it works
Standard clone mechanics: pop the Motorway, pull the image out by key, run stock ImageScaleBy with upscale_method and scale_by, store the result under the output key, and return a clone of the pipe so nothing upstream is mutated.
Installing
cd ComfyUI/custom_nodes
git clone https://github.com/agilly1989/ComfyUI_agilly1989_motorway
Restart ComfyUI, or grab it via ComfyUI Manager by searching "motorway". No requirements.txt, no model downloads - pure Python.
Gotchas
Keys are exact and case-sensitive; a 'MotorwayClass' object has no attribute 'hash_' error means your key string doesn't match anything in the pipe. Watch the case trap - you read "image" (lowercase) and write "IMAGE" (uppercase), so chained clones need hand-aligned keys. And the family caveat: BETA, with the motorway_edition clones disabled in the 1.1.7 hotfix - if the node's missing from your menu, stock ImageScaleBy is the same node with wires.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| MOTORWAY 🚌💨 | MOTORWAY 🚌💨 | — | |
| INPUT_image_key | STRING | image | — |
| upscale_method | COMBO | 5 options: nearest-exact, bilinear, area, bicubic, lanczos | |
| scale_by | FLOAT | 1.000.01–8 | — |
| OUTPUT_IMAGE_key | STRING | IMAGE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MOTORWAY 🚌💨 | MOTORWAY 🚌💨 | — |