[go: up one dir, main page]

Including the libcal supplied image

An event (or event series) can have an featured image associated with it; the image is uploaded within libcal interface, stored on amazon s3 (done by libcal automatically); the image url is returned in the JSON response.

Notes:

Very few events actually have images: a while back, I pulled 155 upcoming events; - https://cpl-halva.herokuapp.com/springshare/libcal/passthrough?what=/events?cal_id=8758&tag=&days=90&campus=&category=&limit=155 - and only 3 have featured images attached to them. Most events with featured images are music at main events.

Mike suggested to use a fallback image, based on audience when one is not included; however, multiple audiences can be assigned for an event; currently the audience in Libcal are:

(ids shared in the json response)

195 - children 0-5,

194 - adults

196 - teens

4989 - children 6-11

1741 - seniors

1742 - all ages

Some next steps:

  • Determine appropriate image ratio to use (may need to speak with OPS to ensure that they use proper image sizes and ratios) (1x1 - 300x300)

This can replace the code that is only used on the music at main page

admittedly, skeptical that a stock image will be needed and will effectively communicate anything;

Edited by Will Skora