Cardexchange - How to automate insertion of images to card template

Cardexchange - How to automate insertion of images to card template

For this guide, we will be showing how you can automate insertion of images to card templates per record using the primary key of a database. To know how you can insert images to a card template, see this link for a step-by-step guide.

*Note: Before we proceed, it is important to know that the file name for each image should correspond to that of the primary key in the database. The file type for all images should also be uniform, i.e, if one of the images is in .png, the rest should be in the same format.

Below is an example of the database that we will be using, as well as the images for each record. Notice how the filename for each image correspond to that of the ID column values which is the primary key field in our database:





Under  tab, click on Card designer then double-click on the image placeholder to open the Properties window.



Change the Fixed image from the dropdown list and select Variable image afterwards.



Next, select the Database column that will serve as reference for the insertion of images. In this case, we will use the ID column since it is our primary key. 



Click  and select the folder that contains the images in your local directory then select the File extension depending on the format of your images. 


*Note: For best practice, try to have a separate folder for each file type, i.e., a separate folder for the database and another for the images.

Save the template to avoid losing any changes made. Upon closing the Properties window, the card template should like this:



To see if the image automatically changes per record, we can look at the Records view and click on each entry to verify. Below is a sample output:
         





~ END ~