Nodes/Comfyroll Studio/🌁 CR Image Border
ComfyUI Node Runs on cloud

🌁 CR Image Border

Add a solid framed border in ComfyUI

By Suzie1Β·Created 3 years agoΒ·Updated 2 years agoΒ· 1,296
🌁 CR Image Border
  • image
  • image
  • show_help
β—„top_thickness0β–Ί
β—„bottom_thickness0β–Ί
β—„left_thickness0β–Ί
β—„right_thickness0β–Ί
β—„border_colorβ–Ύβ–Ί
β—„outline_thickness0β–Ί
β—„outline_colorβ–Ύβ–Ί
β—„border_color_hex#000000β–Ί

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 to custom and use the optional border_color_hex input. 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.

Category🧩 Comfyroll Studio/πŸ‘Ύ Graphics/🌁 Layout

Inputs (9)

NameTypeDefaultDescription
imageIMAGEβ€”
top_thicknessINT00–4096β€”
bottom_thicknessINT00–4096β€”
left_thicknessINT00–4096β€”
right_thicknessINT00–4096β€”
border_colorCOMBO30 options: custom, white, black, red, green, blue, +24
outline_thicknessINT00–1024β€”
outline_colorCOMBO29 options: white, black, red, green, blue, yellow, +23
border_color_hexoptSTRING#000000β€”

Outputs (2)

NameTypeDescription
imageIMAGEβ€”
show_helpSTRINGβ€”