modifications array defined in the Create Image endpoint.
π‘ Layer names matter. Set a descriptivenamefor each layer in the editorβAPI calls reference the layer via thenameproperty.
Core elements
Text
- Typography inherits all styling you configure in the editor (fonts, weight, alignment, line height).
- Override copy or color at render time with:
text: replace the layer content.color: update the text fill color.visible: toggle the layer on or off for a specific render.
Image
- Supports uploaded assets, signed URLs, or remote images. Bannerify fetches and caches external sources at render time.
- Override imagery with:
src: supply a new image URL.visible: hide/show variant artwork without duplicating templates.
Frame
- Frames act as layout containers. Group related layers, control padding, and apply shared transforms.
- Use frames to organize complex automations (e.g., entire product cards or invoice headers) and to simplify show/hide logic through the
visibleflag.
Data-bound elements
Table
- Render tabular data inside images or PDFs without stitching screenshots.
- Tables respect column definitions, per-column widths, and preset themes.
- Override data and presentation via:
columns: array of column keys displayed in order.rows: array of records whose keys match the columns.widthMode:"standard"or"adaptive"column sizing.heightMode:"standard"or"adaptive"row sizing.theme: one of"NONE" | "DEFAULT" | "BRIGHT" | "SIMPLIFY" | "ARCO".
Chart
- Visualize datasets with charts generated server-side. Bannerify renders Chart.js specs and caches results for faster subsequent runs.
- Override chart content by passing the Chart.js-compatible object through the
chartproperty:
Star rating
- Display review or quality scores. Bannerify renders one star per integer value supplied.
- Override with the numeric
starfield (e.g.,star: 5). Combine withvisibleto show ratings only for qualifying products.
Automation-friendly codes
QR Code
- Encode URLs, coupon codes, or app deep links. Override with the
qrcodefield.
Barcode
- Generate Code128 barcodes for inventory, tickets, and logistics. Override with the
barcodefield.
Icon
- Drop vector icons sourced from the Iconoir set. Icons inherit tint, size, and rotation from the editor.
- Use them for visual cues alongside text and metrics; toggle visibility per render when needed.
Layer visibility & fallbacks
visibleapplies to every element type and is useful for AB tests or conditional disclosures.- When modifications omit a property, Bannerify falls back to the template defaults configured in the editor.