Image Border (Mikey)
Add a clean frame around an image
- image
- image
Image Border does one small, useful thing: it pads an image with a solid-color frame of a chosen width. Nothing fancy - no gradients, no rounded corners, no drop shadows - just a clean border added around the outside of whatever you feed it. If you've ever wanted to mat an output before posting it, add breathing room before an outpaint pass, or build a simple contact-sheet-style frame around a batch of comparison renders, this is the node that does it without you having to open an image editor.
It works exactly the way you'd expect from the name. You pass in image, set border_width (an integer from 0 to 1000, default 10), and border_color (a string, default "black"), and it returns a new, larger image with that color padded evenly around all four edges. The output resolution grows by twice the border width in each dimension - a 10px border on a 512x512 image gives you a 532x532 result.
Where this actually earns its keep is as a building block. Stack it with Image Caption to get a bordered image with a labeled strip at the bottom - useful for side-by-side checkpoint or LoRA comparisons where you want the frame and the label baked into the file itself, not just noted separately. Or pair it with Add Metadata if you want both a visual frame and embedded prompt/checkpoint info traveling with the same output.
The inputs that matter are really just border_width and border_color. Width is self-explanatory. Color is a raw string field rather than a color-picker widget, so it takes whatever your Python color library underneath recognizes - standard named colors like "black", "white", "red" are the safe bet; if you want something more specific, a hex string is usually the safer fallback than guessing at a less common named color. The single output is image.
Installing it
Image Border comes bundled with the rest of Mikey Nodes - there's no way to install it on its own. Through ComfyUI Manager, search "Mikey Nodes" and install. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/bash-j/mikey_nodes
Restart ComfyUI afterward. No extra models or dependencies are needed for this node specifically - it's a straightforward image-padding operation.
Common issues
The one thing that trips people up is the color field being free text rather than a dropdown. Type a color name it doesn't recognize and you'll either get an error or an unexpected fallback color, depending on how the underlying library resolves it - if you're not sure a name is supported, use a hex code instead, which is unambiguous. Beyond that, remember the output image is genuinely bigger than the input by 2 × border_width in each dimension, which matters if you're chaining this into something downstream that expects a fixed canvas size (like a batch resize step tuned for a specific resolution) - do the border pass after any size-sensitive steps, not before.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| border_width | INT | 100–1000 | — |
| border_color | STRING | black | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |