Nodes/Nifty Nodes for ComfyUI/Load & Resize Image
ComfyUI Node

Load & Resize Image

A loader that resizes on the way in — and reads PNG metadata as a bundle

By Stibo·Created 5 months ago·Updated 2 months ago· 9
Load & Resize Image
    • IMAGE
    • width
    • height
    • meta_bundle
    filenone
    resize

    Stock ComfyUI's Load Image gets you a tensor at original size, and then you bolt a resize node on if you want anything else. Nifty Load & Resize Image folds loading and the resize pipeline into one node, and quietly adds a second trick: it reads any metadata embedded in a PNG's header and hands it to you as a BUNDLE output.

    So instead of "Load Image → Upscale → Save," you get one node that loads, resizes to whatever you asked, and reports the resulting width and height - which is handy for video or compositing workflows that need the actual dimensions downstream.

    The inputs that matter

    • file - the file to load. A dropdown of what's in your ComfyUI input folder, plus an upload control so you can drop a new file without leaving the node. Select none to pass through an empty output.
    • resize - the resize mode, applied after loading. off loads at original size; otherwise it's a dropdown covering the pack's shared resize pipeline.

    The resize menu is worth a paragraph because it's the pack's selling point. You can scale to exact width×height (with optional center-crop so nothing stretches), scale by a multiplier, scale the longer or shorter dimension to a target, scale width or height only, scale to a target megapixel count, or round dimensions to a multiple (the "make divisible by 16" mode people use for WAN and other video models). Every mode comes with separate scale methods for up vs. down, including area for sharp downscales, lanczos for smooth upscales, and nearest-exact for pixel art.

    Outputs: IMAGE (the loaded tensor, None if file is none), width, height, and meta_bundle.

    The meta_bundle output

    That meta_bundle output is the differentiator. If the PNG you load has Nifty-style metadata embedded in its header (written by the pack's Embed Media Meta Bundle), this node reads it back out as a structured BUNDLE - so a saved image can carry its generation settings around like a manifest, and a loader later in the chain can unpack them. If there's no metadata, you get an empty bundle. Pair it with Embed Media Meta Bundle for the round-trip.

    One scope note: this node is images (and animated formats like GIF/APNG/WebP). If you want a loader that also handles video, with audio and an is_video flag, that's Load & Resize Media - same resize pipeline, bigger file list.

    Install

    Nifty Nodes: ComfyUI Manager → search "Nifty Nodes", or

    cd ComfyUI/custom_nodes
    git clone https://github.com/Stibo/comfyui-nifty-nodes
    

    Restart ComfyUI, keep ComfyUI current (v3 API). The pack's imageio-ffmpeg dependency covers the animation formats, so no model downloads. It's a young pack but the loader trio is where it earns its keep - one node replacing three is a fair trade.

    Categorynifty/media

    Inputs (2)

    NameTypeDefaultDescription
    fileCOMBOnoneImage or animation file to load. Select 'none' to pass through an empty output.
    resizeCOMBOResize mode to apply after loading. 'off' loads the image at its original size.

    Outputs (4)

    NameTypeDescription
    IMAGEIMAGE
    widthINT
    heightINT
    meta_bundleBUNDLE