Nodes/Mikey Nodes/Image Caption (Mikey)
ComfyUI Node

Image Caption (Mikey)

Burn a text caption into your image

By bash-j·Created 3 years ago·Updated 10 months ago· 188
Image Caption (Mikey)
  • image
  • image
fontPath to font file
captionCaption

Image Caption adds a caption bar to the bottom of an image - permanently, baked into the pixels. The author's own framing in the README is spot on: it's useful for stamping the prompt, the checkpoint name, or any other note directly onto the image so it travels with the file wherever it ends up, instead of living only in metadata someone has to go dig for. If you post comparison grids, run checkpoint bake-offs, or just want to remember which prompt made which image six months from now without cracking open PNG info, this node earns its keep.

It's a genuinely simple node under the hood: pass in an image, a font (path to a .ttf file), and a caption string, and it draws that text onto a bar appended below the image and returns the result. No fancy layout options, no font size slider in the schema - it's meant to be a fast, low-friction way to slap a label on, not a full typesetting tool.

The inputs that matter: caption is your multiline text box - put whatever you want visible: the prompt, the checkpoint, a version tag. font is the more fiddly one. By default it's a placeholder string ("Path to font file"), meaning you need to either type a real path to a .ttf file on your system, or - and this is the nicer option the README calls out - create a fonts folder in your ComfyUI base directory (e.g. C:\ComfyUI\fonts or ~/ComfyUI/fonts) and drop .ttf files in there. Once that folder exists, the widget turns into a dropdown populated from whatever fonts you put in it, which is a lot less error-prone than typing paths by hand. The output is a single image.

Installing it

Like every node in this pack, Image Caption comes with the full install - there's no picking and choosing individual nodes. Through ComfyUI Manager, search "Mikey Nodes." Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/bash-j/mikey_nodes

Restart ComfyUI. No models to download for this node, but you do need at least one .ttf font file available somewhere on disk - ComfyUI doesn't ship fonts by default, so you'll need to bring your own (most operating systems have a handful in a system fonts folder you can copy from, or grab a free one online).

Common issues

The single most common mistake: leaving font at its literal default placeholder text and running the graph, which will fail because "Path to font file" isn't an actual file path. Either point it at a real .ttf on disk, or take the two extra minutes to set up the fonts folder trick above - it's worth it if you'll be using this node more than once, since it turns a fragile text field into a reliable dropdown and you won't have to remember or retype paths.

Beyond that, keep in mind the caption bar adds height to the image - it doesn't overlay text on top of existing pixels, it extends the canvas downward to make room. That matters if you're chaining this into a fixed-size pipeline afterward (a batch resize tuned to a specific resolution, for instance) - put the caption step after anything that cares about exact dimensions, not before.

CategoryMikey/Image

Inputs (3)

NameTypeDefaultDescription
imageIMAGE
fontSTRINGPath to font file
captionSTRINGCaption

Outputs (1)

NameTypeDescription
imageIMAGE