This is a repository of images used on the Grants Challenge and Ideas Archive websites.
The folders in this repository are named to match the URLs for each proposal on the challenge website. The files are named after their original URL. For example:
The URL for Yes We Can World Foundation is:
https://challenge.la2050.org/2019/learn/yes-we-can-world-foundation/
And the image URL is:
https://images.la2050.org/challenge/2019/learn/2048-wide/yes-we-can-world-foundation.jpg
The files in the repository are stored and published by Netlify, using the Large Media feature. To obtain and make changes to the files, you’ll need access to LA2050’s Netlify account. You will also need to set up Git LFS and the Netlify CLI tool.
- Clone this repository
- Install Git LFS
- Sign in to Netlify using the Netlify CLI
- Pull, commit and push to the repository as you would normally.
https://docs.netlify.com/large-media/setup/
https://github.com/jimthoburn/netlify-lfs-example/blob/master/README.md
-
Install ImageMagick https://imagemagick.org
-
Install ImageOptim
https://imageoptim.com -
Install Node JS https://nodejs.org
-
Install dependencies
npm install
- Choose images
Choose which folders of images you want to create by editing config.json
"albums": [
"public/challenge/2022/connect",
"public/challenge/2022/create",
"public/challenge/2022/learn",
"public/challenge/2022/live",
"public/challenge/2022/play"
]
- Create a folder named “original” in each category, and add your new images to it:
public/challenge/2022/connect/original/my-new-image.jpg
public/challenge/2022/connect/original/my-other-new-image.png
public/challenge/2022/create/original/yet-other-new-image.jpg
...
- Generate
npm run create