Skip to main content

Add Student Photos to FileWave for Apple Classroom

Student photos can appear in Apple Classroom when FileWave can build a URL for each student's large and small image from roster identifiers. The filename, roster value, web-server path, and FileWave URL template must all match exactly.

Requirements

  1. Prepare a large and small version of each student photo.
  2. Name each image with the same student identifier supplied by the SIS or Apple School Manager roster.
  3. Use %user_identifier% for the roster identifier and %size% for large or small in the FileWave URL template.
  4. Host the images on a stable internal HTTPS web server.
  5. Protect the image directory and limit access to the networks and users that need it.
  6. Enter and test the resulting URL template in FileWave Central preferences.

Images

Before processing hundreds of files, ask the school photographer whether it can deliver the required names and sizes. Also check how the student information system (SIS) or library system already stores photos; an existing managed image export may save substantial preparation work.

Image Name

Student image files have three requirements.

  • %user_identifier% = SIS/Student ID
  • %size% = large or small
  • extension = png or jpg

%user_identifier%

If I was looking at ASM (Apple School Manager), and my students were showing with IDs like S0001, S0002 etc.

Studnet images in Apple School Manager


Then I would know that S0001 should be used for %user_identifier%
Be Careful: Apple School Manager lists "Person Number" and "Person ID" and you want to use "Person Number" when naming the images

%size%

As of the writing of this document, Apple has specified small and large versions of images are needed, but not the size.

FileWave's recommendation regarding image size are:

Small: 675x1024 pixels 
Large: 2700x4100 pixels

Test a few before deploying hundreds of images to ensure that these sizes work well with your student devices.

Web Server

A web server can expose the photos from either:

  • A directory containing the prepared student images
  • An application that returns an image for the requested identifier and size

This article documents the simpler directory method. A scripted application can use the same URL pattern, but its implementation and access controls depend on the chosen web platform.

If you do not already operate an image service, start with a protected directory and test a few students before expanding the workflow.

Directory

In this setup you typically have a flat structure (meaning images are not in folders, just one folder will all student images in it), and would look something like:

apache directory of student images


Setup for your web server will vary depending on which one you selected. But if you can navigate via a browser to a URL simular to

https://fwusa.filewave.com/images/stu/S0001-small.jpg

Then you are ready to move on

Security

Student images are personally identifiable pieces of information and are important to maintain privacy. You will want to give reasonable assurance that you have done your best to prevent these images being released into the wild.
Below could be considered minimum recommendation, but always make things as secure as you can.
Setup will vary depending on the web server selected, so please refer to best practice or hardening guides of the respective server solution.

Internal only

This web server should not be accessable from outside your network. So using the main district web server, a computer sitting in a Firewall's DMZ or a hosted server are all insecure solutions.

You could start up a virtual machine running a free linux OS, enable server.app's webserver on an macOS computer, or use windows. Whichever you do, use something that will always have the same IP/domain name, and is always running.

HTTPS

These days there are few excuses for not doing https. Certificates are cheap or free, and using a secure connections helps prevent data interception from source to destination. Just do https (Port 443/TCP), and even disable http (Port 80/TCP)

Password Protected

Ask the web-server administrator to configure and verify authentication for the photo directory. For Apache, the example below can be used in a .htaccess file only when the server permits these authentication directives, for example through AllowOverride AuthConfig for that directory. If the administrator controls the main server configuration, Apache recommends configuring authentication there instead.

Keep the password file outside every directory or alias served by the web server. The example path /var/www/.htpasswd is suitable only if that file cannot be downloaded through a web URL. Use the same protected filesystem path in AuthUserFile and the password-management command.

AuthType Basic
AuthName "Protected Student pictures"
AuthBasicProvider file
AuthUserFile /var/www/.htpasswd
Require valid-user

Can be placed inside the student images folder to password protect it.
(see https://httpd.apache.org/docs/current/howto/htaccess.html for more info on apache .htaccess files including setup and use)
And a user can be created by something like:

Use -c only when creating a new password file. In the command below, -c overwrites an existing file and removes its other accounts. Before running it, confirm that the file does not already exist. To add or update an account in an existing file, omit -c and preserve the existing file.

htpasswd -c /var/www/.htpasswd picture_user

Note: that the password file is the same /var/www/.htpasswd in both .htaccess and htpasswd (see https://httpd.apache.org/docs/current/programs/htpasswd.html for usage).

Before using student photos, test with a non-sensitive sample image: an unauthenticated request must not return the image, while the intended credentials must allow access over HTTPS. Confirm that the password file itself cannot be retrieved. After configuring FileWave, verify both small and large photos for one known student in Classroom; a successful browser login alone does not confirm FileWave can retrieve them.

Constructing the URL for Admin Preferences

If we were able to access the images via browser at a URL like

https://fwusa.filewave.com/images/stu/S0001-small.jpg


Then we can use that as our template

https://fwusa.filewave.com/images/stu/S0001-small.jpg

BMgLs2g66mA8Z1WN-embedded-image-l449jqdk.png


Would become:

https://fwusa.filewave.com/images/stu/%user_identifier%-%size%.jpg

Note how the - needed to stay in the URL, and that it was an https server.

3v1Zo8QchK6YjDyu-embedded-image-wzliyfjb.png