Skip to content

Uploading Pictures

The website has a picture page that display pictures of past events at COGS. To upload pictures to this page, follow the steps below:

Prerequisites

  1. Make sure you have Python installed on your computer.
  2. Make sure you have Git installed on your computer.
  3. Clone the website GitHub repository locally if you don't have it already

    > git clone https://github.com/rucogs/rucogs.github.io
    
  4. Inside the repository folder, install the python packages using

    > pip install -r requirements.txt
    

Steps

  1. Upload pictures to the src/assets/pictures-page-images folder

    • Make sure to place in the image in the correct folder based on it's year and then semester
    • If the folder doesn't exist, feel free to create it.
  2. Run the following command. This will add the images to the website as well as generate preview thumbnails for the images

    > py update_images.py
    
  3. Commit and push your changes to GitHub

    > git add .
    > git commit -m "Description of changes, etc."
    > git push