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 ~


    • Related Articles

    • CardExchange - How to insert an Image into card template

      Step 1: Click Card designer. *Note: Before clicking Card designer, make sure to have the right card selected. In this case, we will use a sample template. Step 2: Go to Insert tab then click on Image (as seen below). *Note: You can also change the ...
    • Compatible signature pads to CardExchange

      Please visit https://cardexchange.support/resource/supported-devices for more details.
    • ID Card Printer Do's and Dont's

      Do's: Use High-Quality Images: Ensure that the images you use for printing are of high quality. This ensures that the printed cards are clear and legible. Regular Cleaning: Clean the printer regularly to prevent dust and debris from affecting print ...
    • CardExchange - How to connect textboxes in card template to database fields

      For this guide, we will be showing how you can make textboxes dynamically change according to fields in your database assuming that you already have the database connected to your card template. If not, you can check this link for a step-by-step ...
    • CardExchange - How to export and import template

      Export Procedure    1. Select the template that you want to Export. 2. After selecting the template go to configuration and click Export Templates. 3. Name the template and save it to your computer folder.  Remember: The file that has been exported ...