HubSpot / facewall

Grid visualization of Gravatars for an organization
http://github.hubspot.com/facewall/
MIT License
138 stars 38 forks source link

Loading images from directory rather than gravatar #16

Closed synpredator closed 9 years ago

synpredator commented 9 years ago

Hi, I was wondering, Is it possible to load images from a local directory where the files are hosted rather than using the website gravatar? and if so, How do i go about this? Lets say I want the images to be pulled based on the user ID? and the images are in /images/?

Is it possible?

adamschwartz commented 9 years ago

Absolutely.

If you modify avatarInGridSize -> to simply return url, manually set the gravatar property in your employee JSON to be the local /images/USER_ID.jpg paths, and remove this line from the employees JSON parsing, you should be all set.

synpredator commented 9 years ago

Hi Adam

Thank you for responding, I am unsure how to edit the return url or what to set it too, Also everytime I try and add employees to a jason file it errors, is there an example of the employees json file anywhere?