Nodes/ComfyUI-PepeUtils/Pepe Paste Image
ComfyUI Node

Pepe Paste Image

Ctrl+V a screenshot straight into your img2img workflow

By Pepehoschi·Created 5 months ago·Updated 12 days ago· 0
Pepe Paste Image
    • image
    • mask
    image

    You're browsing, you see a composition you want to remix, you hit screenshot. Now what? The classic route is: save the file somewhere, find it in the LoadImage dropdown, curse your downloads folder. Pepe Paste Image kills that whole dance. You select the node, press Ctrl+V, and the clipboard image is in your workflow, uploaded to ComfyUI's temporary storage and ready to wire into a sampler.

    It's the fastest img2img on-ramp in the pack, and for reference-heavy work it's the node you'll actually reach for. Copy a reference from a browser tab, paste, done.

    How it works

    The frontend adds a paste listener and a clipboard button. When you Ctrl+V with the node selected (or click Paste image from clipboard), the browser grabs the clipboard image and uploads it to ComfyUI/temp/pepeutils/paste-image - note the temp/ path, not your input/ folder. The node then loads it through the same machinery as Load Image Cropped, which it subclasses, and returns the image plus its mask.

    Two things make it feel different from a normal load node:

    • It only accepts images in the temp directory. The node validates that its image value carries the [temp] annotation and refuses anything else, which is a safety-ish guard against feeding it stale paths.
    • Temp is temporary. ComfyUI wipes temp/ on startup and on normal shutdown. That's by design - these pasted images are scratch, not assets.

    Inputs and outputs

    The image input is a STRING widget that holds the temp filename (e.g. pepeutils/paste-image/clipboard-1723456789012-abc.png [temp]). You don't type in it; the frontend fills it when you paste. The node shows a live preview with the pasted dimensions so you can confirm what landed.

    Outputs:

    • image - the pasted image as a normal ComfyUI IMAGE tensor.
    • mask - the alpha mask, cropped-load style. On a screenshot with no transparency this is all zeros, same as any opaque image's mask.

    Wire image into a VAE Encode, a LoadImage-fed img2img chain, or a ControlNet reference and you're generating from your clipboard in two seconds flat.

    Installing it

    Pepe Paste Image ships in Pepehoschi/ComfyUI-PepeUtils (GPL-3.0). Install via ComfyUI Manager (search "ComfyUI-PepeUtils") or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Pepehoschi/ComfyUI-PepeUtils
    

    Restart ComfyUI. No extra dependencies.

    The gotchas, and they're real

    First: temp images don't survive a restart. A saved workflow keeps the temp filename, not the image - the preview shows a "temporary image is no longer available" and you have to paste again. That's intentional (scratch, not storage), so if the pasted image matters, save it elsewhere first.

    Second, the clipboard button needs the browser's clipboard permission (navigator.clipboard.read), which some setups deny. The Ctrl+V shortcut uses the document-level paste event instead and keeps working when the button can't. If neither works, your browser is blocking clipboard access - check the site's permission settings.

    Third, the shortcut needs exactly one Pepe Paste Image node selected. Multiple selected nodes and the paste handler doesn't know where to send the image. Select the node, then paste. That's the whole manual.

    Categoryimage

    Inputs (1)

    NameTypeDefaultDescription
    imageSTRING

    Outputs (2)

    NameTypeDescription
    imageIMAGE
    maskMASK