Bannerify

v1.0.2
io.github.bannerify/bannerify Checked 1 day ago Published 26 days ago

Generate images and PDFs from your Bannerify templates, or compose an image from shapes.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_templates List templates

List every Bannerify template in the workspace, with the layers you can override. Use this to find the template id before generating.

ParameterTypeDescription
includeLayersbooleanInclude the editable layers of each template (recommended).

get_template Get template

Read one template: its name and the layers you can override when generating an image or PDF.

ParameterTypeDescription
templateId *stringThe template id, for example tpl_abc123

get_project Get project

Read the Bannerify project linked to the connected account.

create_image Create image

Generate an image from a Bannerify template and return it inline. Pass layer overrides in `modifications`.

ParameterTypeDescription
templateId *stringThe template id, for example tpl_abc123
formatstringOutput format. Defaults to png.
modificationsobjectLayer overrides keyed by layer name. A string replaces the layer text, e.g. {"headline":"Summer sale"}. An object sets layer specific fields, e.g. {"photo":{"src":"https://example.com/a.png"}}, {"qr":…

create_pdf Create PDF

Generate a PDF from a Bannerify template and return a link to the stored file. Pass layer overrides in `modifications`.

ParameterTypeDescription
templateId *stringThe template id, for example tpl_abc123
modificationsobjectLayer overrides keyed by layer name. A string replaces the layer text, e.g. {"headline":"Summer sale"}. An object sets layer specific fields, e.g. {"photo":{"src":"https://example.com/a.png"}}, {"qr":…

create_image_from_shapes Create image from shapes

Create an image from shapes you compose yourself, without a template. Use this when no template fits, or the user wants a one-off design: a banner, a label, an invoice. Set the canvas size in `canvas`, then pass `shapes` in draw order: the first shape is at the back, the last on top. Every shape has `type`, `x`, `y`, `width` and `height`, in pixels from the top left of the canvas. Types and their required field: text (`text`), image (`src`), qrcode (`qrcode`), barcode (`barcode`), icon (`icon`, an Iconoir name such as `check-circle`), table (`columns` and `rows`). `frame` and `star` need no ex…

create_video Create video

Render a video template as an MP4 and return a link to it. Pass layer overrides in `modifications`. A long render answers the video id first: read the video with get_video until it is done. Each second of video counts as one generation, and two at 60 fps.

ParameterTypeDescription
templateId *stringThe id of a video template, for example tpl_abc123
modificationsobjectLayer overrides keyed by layer name. A string replaces the layer text, e.g. {"headline":"Summer sale"}. An object sets layer specific fields, e.g. {"photo":{"src":"https://example.com/a.png"}}, {"qr":…

get_video Get video

Read a video that create_video started: its status (queued, rendering, done or failed) and its link once it is done.

ParameterTypeDescription
id *stringThe video id from create_video, for example vid_0b3c1c1e5d6f4c529e0a8f6a4c0f2a11