FR
0. Créer les photos des profils à la bonne taille et détourrée (sans fond) au format PNG.
1. créer un fichier Excel avec ligne 1 le nom des variables automatiques qui seront récupérées par Photoshop. NB. : toutes les variables doivent être remplies, donc utiliser le caractère espace/blanc
   ou tout autre caractère qui sera visibe.
2. enregistrer le fichier Excel au format CSV séparé par des virgules (Enregistrer avec le séparateur";" et le remplacer dans un éditeur de texte par ",", pour les décimales et dans le texte utiliser le "." à la place).
3. dans Photoshop, créer les variables de tous les champs. Sélectionner un objet (Texte ou image) et lui affecter un nom de variable identique à celui d'Excel. Pour cela, sélectionner l'objet puis cliquer
   dans le menu sur Image/Variables/Define et saisir le nom de la variable Excel dans le champ "Name" sous "Text Replacement"/"Pixel Replacement". Recommencer l'opération pour les autres objets. Bien vérifier que la liaison
   est correcte à droite du champ créé avec le bouton "flèche vers le bas".
4. dans Photoshop, lier le fichier Excel en cliquant dans le menu sur Image/Variables/Data Sets, puis cliquer sur le bouton "Import", puis sur le bouton "Select File" et chosir le fichier Excel CSV. Si
   le fichier est correct il n'y aura pas de messages d'erreur. Puis cliquer sur le bouton "OK".
   Attention : Photoshop peut fermer, il faut dans ce cas réduire le nombre de lignes du fichier CSV
5. dans Photoshop, cliquer dans le menu sur Export/Data Sets as files puis cliquer sur le bouton "Select Folder" et choisir le répertoire de destion où les images au format PSD seront enregistrées.
   Modifier les champs sous la section "File Naming" pour choisir le type de nom des fichiers sauvegardés. Puis cliquer sur le bouton "OK" pour lancer la création des photos basées sur le fichier Excel.
6. dans Photoshop, ouvrir les fichier PSD avec des problèmes pour les corriger (image mal placée/trop grande/..., texte trop long, ...).
7. dans Photoshop, afin de transformer les fichier PSD en JPG, cliquer dans le menu sur Script/Image Processor puis choisir le répertoire d'origine des images, dans "1" cliquer sur le bouton
   "Select Folder" et choisir le répertoire où se trouve les images à importer, et , dans "2" cliquer sur le bouton "Select Folder" et choisir le répertoire de destination où seront enregistrer les
   images créées par Photoshop. Choisir la qualité (la valeur 12 est une valeur de très bonne qualité et suffisante en fonction des versions de Photoshop). Puis cliquer sur le bouton "Run".
----------------
EN
0. Create the profile photos for the profiles with the good scale and without back in PNG file format.
1. Create an Excel file with line 1 the name of the automatic variables which will be collected by Photoshop. NB.: all variables must be filled in, so use the space/blank character or any other character
   which in this case will be visible.
2. save the Excel file in CSV format separated by commas (in the Text replace , by .).
3. In Photoshop, create the variables for all the fields. Select an object (text or image) and assign it a variable name identical to the one in Excel. To do this, select the object and then click in the
   menu on Image/Variables/Define and enter the name of the Excel variable in the "Name" field under "Text Replacement"/"Pixel Replacement". Repeat the operation for the other objects. Make sure that the link is correct to
   the right of the created field with the "down arrow" button.
4. In Photoshop, link the Excel file by clicking on the menu on Image/Variables/Data Sets, then click on the "Import" button, then on the "Select File" button and choose the Excel CSV file.
   If the file is correct there will be no error messages. Then click on the "OK" button.
   Warning: Photoshop can close, in this case you must reduce the number of lines in the CSV file
5. In Photoshop, click on the menu on Export/Data Sets as files then click on the "Select Folder" button and choose the destination folder where the PSD images will be saved.
   Modify the fields under the "File Naming" section to choose the type of name of the saved files. Then click the "OK" button to start creating photos based on the Excel file.
6. In Photoshop, Open PSD files with problems to correct them (wrong image/size/..., text length, ...).
7. In Photoshop, in order to transform the PSD files into JPG, click in the menu on Script/Image Processor and then choose the original directory of the images, in "1" click on the button
   "Select Folder" and choose the directory where the images to be imported are located, and in "2" click on the "Select Folder" button and choose the destination directory where the images created
   by Photoshop will be saved.
   Choose the quality (the value 12 is a value of very good quality and sufficient according to the versions of Photoshop). Then click on the "Run" button.
----------------
Sources :
https://www.youtube.com/watch?v=3IzpItHTvyo

