ComfyTV/Imagegenerated

Poster(PosterStage)

The Poster node renders a finished poster image from a layout template, a set of images, and the canvas state saved by the interactive card.

Poster Stage

images
image
template
COMBO
width
1240
height
1754
layout
{}
ComfyTV

Description

The Poster node renders a finished poster image from a layout template, a set of images, and the canvas state saved by the interactive card. It is the final compositing stage of the ComfyTV poster workflow: the template defines the arrangement, the images fill the slots, and the node produces a single rendered poster of the requested size.

The card itself is fully interactive. After choosing a template, every element on the poster can be dragged, resized, and edited directly on the card, and those edits are stored in the layout input so that the render matches exactly what you arranged.

Inputs

InputTypeRequiredDefaultNotes
templateCOMBOYes-Layout template. Every element can be dragged, resized, and edited on the card.
widthINTYes1240Internal: poster width in pixels. Range 256 to 4096, step 2.
heightINTYes1754Internal: poster height in pixels. Range 256 to 4096, step 2.
layoutSTRINGYes"{}"Internal: canvas layout, colors, and fonts blob.
imagesAUTOGROWYes-Variable number of image inputs used to fill the poster slots.

template

Selects the layout template that seeds the poster. The template determines which elements exist on the card (image slots, text boxes, background shapes) and their starting arrangement. Once a template is chosen, every element can be dragged, resized, and edited on the card, so the template acts as a starting point rather than a fixed constraint.

width

The poster width in pixels. The default of 1240 matches a portrait poster at roughly A4 proportions when paired with the default height. Values are constrained to 256 through 4096 in steps of 2, which keeps dimensions even (useful for downstream scaling and image operations). This input is marked internal: it is normally driven by the card's canvas size rather than edited by hand, but it can be set manually when scripting a fixed output size.

height

The poster height in pixels. The default of 1754 gives a portrait aspect ratio with the default width. Range and step match width: 256 to 4096 in steps of 2. Like width, this is an internal input normally kept in sync with the card.

layout

A JSON string holding the serialized canvas state: element positions and sizes, color choices, font selections, and any other per-element settings made on the card. The default "{}" is an empty layout, which is what you get before the card has written any edits. In normal use this field is populated automatically by the card; editing the raw string is only useful for programmatic or saved-layout workflows.

images

An autogrowing image input. Connect one image per image slot in the template; the input list expands as you connect more. The order in which images are connected corresponds to the order of the slots in the template. Images are composited into the poster according to the layout, so changing an image updates the rendered output without needing to touch the layout.

Outputs

OutputTypeNotes
IMAGECOMFYTV_IMAGEThe rendered poster.

COMFYTV_IMAGE

The rendered poster. This is the ComfyTV image type, carrying the poster along with the metadata the ComfyTV preview and export nodes expect, so it can be fed directly into a preview, save, or further ComfyTV processing node. The output resolution follows the width and height inputs.

Usage Notes

  • Build the poster in two stages: pick a template and connect images first, then open the card to drag, resize, and edit elements. The card writes the result back into layout, so the render always reflects your latest edits.
  • width, height, and layout are marked internal. In typical graph use you leave them alone and let the card manage them; they are exposed so that saved workflows reproduce a specific canvas size and arrangement.
  • The default layout of "{}" means no edits have been recorded yet. If a poster comes out looking like a bare template, check that the card has actually saved its layout.
  • Keep width and height on even values. The step of 2 enforces this, and even dimensions avoid fractional pixel seams when images are scaled into slots.
  • Because images is autogrowing, the node adapts to templates with different numbers of slots; connect images in the same order as the slots you want to fill.

Comments

Sign in with GitHub to join the discussion.

Loading comments…