Circles
Adding new circle
Circles are added directly to the database manually.
Adding circle image
Production circle images are kept at their own repository and manually updated at the production server.
Image requirements:
- Filename should match
slug
value (the bit visible at URL) of Circle and end with.jpg
- Landscape
- Reasonably sized
- Work with text overlay
- Preferably have humans to be easier to identify with
- Allowed to use non-commercially (E.g. be Creative Commons licensed)
Test images locally
To test images locally:
- Install Trustroots locally
- Generate new circles with
npm run seed
command. - Place your image file at
public/uploads-circle
. Mind the above filename instructions. - Start the application with
npm start
, or runnpm run generate-circle-images
- Additional image sizes and formats get generated at
/public/uploads-circle/image-name/*
- To re-generate images, remove the above folder.