Skip to main content

Documentation Index

Fetch the complete documentation index at: https://autorender.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Text layers allow you to composite text overlays on top of your images. This is essential for creating social media cards, product promotional images, or automated banners with dynamic content.

Text Overlay - (l_text)

To add text, use the l_text: parameter followed by the font configuration and your URL-encoded text. Format: l_text:{fontFamily}_{fontSize}_{style}_{align}:{text}

Configuration Options

OptionExamplesDescription
Font Familyarial, helvetica, verdanaAny system or supported custom font
Font Size24, 48, 72Size in pixels
Stylebold, italic, bold_italicText decoration (optional)
Alignmentleft, center, rightText anchor within the bounding box
https://assets.autorender.io/LOKVTtKVGb/doc1/porsche.jpg
Original base image

Text Placement - (tp)

Use the tp_ parameter to anchor your text to specific regions of the image.
codePlacementcodePlacement
nwTop-leftnTop-center
neTop-rightwLeft-center
cCentereRight-center
swBottom-leftsBottom-center
seBottom-right

Absolute Positioning - (lx, ly)

Instead of using relative placement (tp_), you can specify exact pixel coordinates for the layer’s center point.
ParameterAliasDescription
lx_XAbsolute X coordinate from the left edge
ly_YAbsolute Y coordinate from the top edge

Multiple Text Layers

You can stack multiple text layers by defining each layer block ending with fl_layer_apply.
https://assets.autorender.io/LOKVTtKVGb/l_text:arial_72_bold:LIMITED%20EDITION,tp_north-west,fl_layer_apply,l_text:arial_44_bold:By%20Autorender,tp_south,fl_layer_apply/ar-accessories.jpg
Multiple text layers

Best Practices

  • Layer Apply: Always end every layer with fl_layer_apply to ensure subsequent transformations apply to the base image.
  • Encoding: Always URL-encode your text content (e.g., space becomes %20).
  • Contrast: Use the co_ (color) parameter to ensure text is readable against the background.
  • Coordinates: Use x_ and y_ after tp_ for fine-grained coordinate adjustments if needed.