An flexible gallery generator for your images and albums, a free portfolio solution for your photos.
This library also includes img-previewer feature
- Fork this repository π΄
- Clone the repository
git clone https://github.com/lucthienphong1120/gallery
- Put your photos in folder
/photos
with all of your albums. - For each of your albums, create a folder with name as your album name, and then put all of your photos in.
Example: You can use tree photos /F
to see all of your file in photos
folder
ββββphotos
β ββββalbums1
β β ββββIMG1_01.jpg
β β ββββIMG1_02.png
β β ββββ ...
β ββββalbums2
β β ββββIMG2_01.jpg
β β ββββIMG2_02.jpg
β β ββββ ...
β ββββalbums3
β β ββββIMG3_01.png
β β ββββIMG3_02.jpg
β β ββββ ...
β ββββ ...
- In Windows, open your terminal and run
python data/setup.py
- Personalize the contents of website at
data/info.json
. (Title, Description, Note) - Commit all change and host your repo with github page
git add -A
git commit -m "commit"
git push origin main
- ... and that's all your gallery
In windows, you can automate your process by running:
sync.bat
It includes update config, sync data, commit and push to your deploy too!
- I used VueJS framework to render items and use Python to aggregate data π₯
setup.py
will go through all of folders in/photos/
directory and create adata/config.json
file.- It will collects all of information of each photo in your albums. It aggregates all data into one file called
data/config.json
. - Once you've created your
data/config.json
, the website can use it to figure out which photos to show.