Syntax
Images are declared using theimage_ prefix:
Pre-processing & Converting
The system optimizes images before insertion:- Format conversion: Images are automatically converted to .jpg format
- Quality optimization: Reduces file size while maintaining quality
- PNG exception: PNG files retain their format to preserve transparency
Supported Formats
JPG, PNG, GIF, BMP, TIFF, ICO, PDF (first page), EPS, AI, PSD, SVG, WebP, AVIF, HEIF, JXR, WDPIf a placeholder value contains non-image content (such as HTML, plain text, or an unsupported file type), it will be silently skipped and the placeholder will be removed from the document. This ensures that invalid data in image fields never causes the entire document generation to fail.
Image Quality Settings
Configure image handling in Template / Document Generation Options:| Setting | Description |
|---|---|
| Low | Smallest file size, lower quality |
| Eco | Balanced quality and file size (recommended) |
| Good | Higher quality, larger file size |
| Best | Maximum quality, largest file size |
Maximum Width
- Range: 200-2000 pixels
- Standard: 600px
- Example: An 8000×6000px image resizes to 600×450px
Resizing Images
Resize individual placeholder images through DocsAutomator’s interface:- Aspect ratio: Always preserved during resizing
- Single dimension: Other dimension calculates automatically to maintain proportions
- Both dimensions: Image scales to fit while preserving aspect ratio
Clickable Image Links
Turn any image into a clickable hyperlink. Open the placeholder’s image options, enable Linked image, and choose where the target URL comes from. The link is applied to the image and survives PDF export.- Airtable, Google Sheets, SmartSuite, ClickUp
- API, Zapier, Make, n8n, Glide, Noloco, MCP
Pick the field or column whose value holds the target URL. The URL is resolved per record, so every generated document links to the right place.
Passing Images via API
When using the DocsAutomator API, pass an array of image URLs for processing:Clickable Images via API
To make an image clickable, pass it as a{ "url", "link" } object instead of a plain URL string. The url is the image and the link is where it points. No automation setup is required, and the link survives PDF export (Google Doc and Word templates):
link:
Multiple Images
To insert multiple images for a single placeholder, pass them as an array or comma-separated URLs depending on your data source:- API
- Google Sheets
- Airtable
Choosing Which Image to Insert
When a placeholder receives multiple images, you can choose which of them end up in the document. Open the placeholder’s image options and set Which image:| Option | Behavior |
|---|---|
| All images (default) | Every image is inserted inline |
| First image only | Only the first image in the list |
| Last image only | Only the last image in the list |
Word templates insert a single image per placeholder: “First image only” and “Last image only” work as described, and a multi-image field left on “All images” inserts the first image. Google Doc templates insert all images inline.
Best Practices
Use publicly accessible image URLs
Use publicly accessible image URLs
Image placeholders expect valid, publicly accessible image URLs. If a value is not a valid image (e.g. HTML, plain text, or a broken link), the image will be skipped and the placeholder removed from the document.
Optimize source images
Optimize source images
While DocsAutomator compresses images, starting with reasonably sized images improves processing speed.
Use PNG for transparency
Use PNG for transparency
If your image requires transparency (logos, overlays), use PNG format.
Test with preview mode
Test with preview mode
Always test image rendering in preview mode before production.
Related Pages
Template Guide
Learn all template syntax
Line Items
Add images in repeating rows