diff --git a/README.md b/README.md index 1854a27575b96a93637e91076727a891dbacb54f..3930896a627ceb9d8d7efcdc7ecc2a743ad29063 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,24 @@ Script used by Planning and resources committee for generating ID cards. ## Dependencies + xlrd (python library to handle MS Excel files) -+ Adobe photoshop \ No newline at end of file ++ Adobe photoshop ++ Python 2.7 + +## How to run the script? + ++ Put all the photos into photos directory. Name of the file of the photo is the + name on the id card. ('Jane Doe.jpg' -> name on ID = Jane Doe) + ++ Run the cmd.txt, it generates ExcelScript\PR.xlsx file. Fill in the rest of the file. + ++ Run excel1.py, it generates + - 'ExcelScript\files\dept.txt' + - 'ExcelScript\files\names.txt' + - 'ExcelScript\files\photo_id.txt' + - 'ExcelScript\files\roles.txt' + ++ Connect 'PhotoID.jsx' to Adobe photoshop, run it. It generates 'outputs/psd/Jane Doe.psd' + ++ Adjust the layers and pictures properly with photoshop for example 'outputs/psd/Jane Doe.psd' + ++ Connect 'Save.jsx' to Adobe photoshop, run it. It generates 'outputs/id/Jane Doe.jpg'