π CR Image Border
Add a solid framed border in ComfyUI
- image
- image
- show_help
Sometimes you just want a clean, solid frame around a finished image - a mat for a print, a colored border for a social post, a contact-sheet look. CR Image Border does that: a solid border on each side, plus an optional thin outline for a two-tone framed effect. If you want the soft, faded version instead, that's CR Feathered Border; this one is crisp edges.
It's a layout node from Comfyroll Studio, the utility grab-bag by Suzie1 and RockOfFire. Pure image drawing, no GPU, no model.
How it works
The node pads the image outward with a colored border of the thickness you choose per side, and can draw a second, thinner outline for that framed-print effect (border in one color, a hairline outline in another). Everything is a finishing step you run after generation.
The inputs that matter
image- the picture to frame.top_thickness/bottom_thickness/left_thickness/right_thickness- per-side border width, all default 0, so set at least one or nothing happens.border_color- named-color dropdown. For a hex value, set it tocustomand use the optionalborder_color_hexinput. Pick a named color and the hex box is ignored - the usual Comfyroll color gotcha.outline_thickness/outline_color- the second, thinner frame drawn against the border. Leave thickness at 0 if you only want the plain border.
Output is image plus show_help (a wiki link - leave it unconnected).
Installing it
ComfyUI Manager β search Comfyroll Studio β install β restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes
then restart. No model files needed.
Common issues
Border invisible. All four thickness values default to 0. Give it real width on the sides you want framed.
Hex color not applied. border_color must be custom for border_color_hex to take effect.
Pack fails to load. A console error of Failed to load Graphics nodes plus NameError: name 'CR_HalftoneGrid' is not defined means a graphics dependency (commonly matplotlib) failed to import and knocked out the whole Comfyroll pack, borders included. Scroll up to the first real traceback, install the missing package into ComfyUI's Python, restart. It's the pack's most common install snag.
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | β | |
| top_thickness | INT | 00β4096 | β |
| bottom_thickness | INT | 00β4096 | β |
| left_thickness | INT | 00β4096 | β |
| right_thickness | INT | 00β4096 | β |
| border_color | COMBO | 30 options: custom, white, black, red, green, blue, +24 | |
| outline_thickness | INT | 00β1024 | β |
| outline_color | COMBO | 29 options: white, black, red, green, blue, yellow, +23 | |
| border_color_hexopt | STRING | #000000 | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | β |
| show_help | STRING | β |