# ID card generator for Anokha

Script used by Planning and resources committee for generating ID cards.

## Dependencies

+ xlrd (python library to handle MS Excel files)
+ 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'