Coder Social home page Coder Social logo

photo-gallery's Introduction

Photo Gallery

Simple Photo Gallery using the following tech:

Getting Started

Simply create galleries folder in public folder

  mkdir ~/yourdomain/public/galleries

Group up the images in a folder, you can think about a folder as an album which is a collection of images. For example you can have album collections of your wedding, engagement, bridal, event, family, kid, etc.

~/yourdomain/public/galleries
~/yourdomain/public/galleries/wedding
~/yourdomain/public/galleries/engagement
~/yourdomain/public/galleries/bridal
~/yourdomain/public/galleries/event
~/yourdomain/public/galleries/family
~/yourdomain/public/galleries/kid

Then you need to add a info.yaml file in each folder/album before uploading. Here is a sample content of info.yaml:

---
title: Album1
desc: Add description here

Finally, use your favorite FTP client to upload the folder(s) into galleries directory.

Adding New Image

To add a new image into an album, simply upload the image into a desired album. Thumbnails will be automatically generated for new images. When you add a batch of images, it may take sometime for the app to generate the thumbnails. Unfortunately there is no feedback provided when this is happening.

ToDo

  • Auto generate default info.yaml when not available.
  • Show progress bar when generating thumbnails.
  • Support overlay when mouse over on images.
  • Show total number of images in an album
  • Show description on album view.

Live Demo

http://william.afendy.com

Notes

Use below command to remove all thumbnails during development

find . -name *_tn.jpg | xargs rm

License

Free. BSD License.

photo-gallery's People

Contributors

wafendy 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.