Giter VIP home page Giter VIP logo

gallery's Introduction

Gallery

An flexible gallery generator for your images and albums, a free portfolio solution for your photos.

This library also includes img-previewer feature

How to use

  • 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

Automate processing

In windows, you can automate your process by running:

sync.bat

It includes update config, sync data, commit and push to your deploy too!

How It Works

  • 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 a data/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.

gallery's People

Contributors

lucthienphong1120 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.