Place images automatically from file names, paths or URLs

Image file names from data placed into frames

When every record needs its own image – a product photo, a portrait, a logo – DataMergeStudio places the right file on each record automatically, using a reference in your data. You set it up once and it runs for 10 records or 10,000.

Before you start

  • A data source with a column that references your images – a file name, a full path, or a URL.
  • Your InDesign layout open, with a frame where the image should appear.
  • (File names only) the image files gathered in one folder – often the InDesign Links folder.

Step 1 – Prepare the image frame in InDesign

The frame that should receive the images must contain a placeholder as its only content – for example {{image}}. Nothing else may sit in that frame, or it won’t be recognized as an image target.

InDesign frame containing only the image placeholder

Step 2 – Mark the frame as an image

In DataMergeStudio, click the question mark on the field and choose Replace with image. This tells the app you want to merge images into this frame.

The image field with its question mark and Edit button

The replace menu with Replace with image selected

Then click Edit to open the editor workspace.

Step 3 – Add an Image node

In the editor, right-click the canvas (or click the large + in the top right) and choose Add node → Data → Image. Click the new node to open its Properties panel on the left.

Right-click menu: Add node, Data, Image

Step 4 – Choose the column

In the Properties panel, under Image Source, open the first dropdown and select the column from your datasource that holds the image reference.

Selecting the data column from the datasource

Step 5 – Choose what the column contains

From the second dropdown, choose how the reference should be read:

  • Image Name – just the file name (e.g. 12345.jpg).
  • Image Path – the full path to each file.
  • Image URL – a web address; DataMergeStudio downloads each image.

Selecting the data type, here Image Path

Step 6 – (Image Name only) Point to the image folder

If you chose Image Name, a Select Folder button appears. Click it and choose the folder your images live in – often the InDesign Links folder.

The Select Folder button, shown only for Image Name

Step 7 – Connect to the central node

Drag from the Image node’s Data output to the Data input on the central node (labelled PLACEHOLDER). The central node is always present and can’t be deleted.

The Image node Data output connected to the central node Data input

Step 8 – Preview

Open the Preview with the eye icon in the top right and check that the images appear. You may need to grant permission the first time.

Opening the preview with the eye icon

Step 9 – Validate all records

Click Validate all records – the button in the bottom-right corner of the workspace. DataMergeStudio checks the setup against every row and tells you how many succeeded – and warns you if an image is missing, can’t be downloaded, and so on.

Validation result: 500 succeeded, 0 failed

Step 10 – Export

Open Export from the top menu. Under Merge Mode, select Individual, then click Validate & Export. Every record is exported with its own image in place.

Export panel with Merge Mode set to Individual

Fitting and alignment

How each image sits in its frame is up to you. DataMergeStudio supports all of InDesign’s image fitting and alignment options – fit content to frame, fill proportionally, fit frame to content, centre, align to an edge, and so on – set per frame. The chosen fitting then applies automatically to every record’s image, and it can even be driven by your data, so different records fit differently. You can also apply an object style to the image frame for borders, effects, or a consistent look.

Result

Every record places its own image automatically – no manual dragging, however many records you have.

Not found what you're looking for?

How-To Guides · Last updated 1 month ago

Copyright ToolboxCode UG