SDSHOWTO:Student photos
Basic Requirements
- You need photos in .jpg format named by student number, eg 123456.jpg .
- Photos should be shrunk down and compressed (procedure below)
Software Required
- Install David's Batch Processor for GIMP from here: http://members.ozemail.com.au/~hodsond/dbp.html . Extract the Windows EXE and place it in C:\Program Files\GIMP\lib\gimp\2.0\plug-ins
- Install WinSCP or WinSCP Portable
Procedure
- Extract the photos off of the photo CDs that are provided by each school
Resizing Photos
- Create an empty folder to store the resized photos
- Make sure the batch process plugin is installed. It is located in MIS Share under ISO\gimp_batch_process
- Run GIMP
- Go to Filters -> Batch Process
- On the Input tab, click the Add Files button
- Select all of the photos to be resized and click the Add button (this takes a while), then click the Close button on the Add Image Files window
- On the Resize tab, check "Enable" then select "Absolute" immediately underneath. Enter width 216 and height 288 with fit Inside
- On the Rename tab, click the "Select Dir" button and choose your empty folder
- On the Output tab, choose Format JPG, and ensure quality is set to 0.75
- Click the Start button at the bottom of the window and wait until the resize is complete
Uploading Photos
- Run WinSCP
- Create a new session to hostname: SDS1, username: your Linux username, password: your Linux password
- Drag your resized photo directory across to your home directory on SDS1
Importing Photos
- Run PuTTY and connect via SSH to sds1
- Create a new directory in the /var/www folder with the correct name. The format is:
StudentPhotos2013-2014
where you should only need to update the years. The command to create the directory is:
sudo mkdir -p /var/www/StudentPhotos2013-2014
- Copy the files into that directory:
sudo cp ~/YourFolderName/*.jpg /var/www/StudentPhotos2013-2014/
- Log into SDS
- Go to Admin Menu -> Migration -> Photos import
- Click the Import Photos button
Notes
- Each campus can be done individually. Since each student number is different, copying in additional photos to the StudentPhotos20xx-20yy will not overwrite any files that are present.
- Retakes can be handled in exactly the same way. The new photos will overwrite the old photos. When you run the Photos import in SDS, it will overwrite their previous picture with their new picture.