GithubHelp home page GithubHelp logo

lisandro52 / pigallery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bpatrik/pigallery

1.0 1.0 0.0 2.69 MB

Online Photo gallery for Raspberry Pi

License: MIT License

PHP 33.39% CSS 1.84% JavaScript 64.77%

pigallery's Introduction

PiGallery

This is a lightweight online photo gallery design for the Raspberry Pi, but can be used with any other device. The aim of the project is to create a photo gallery that is optimised for low-powered servers, but with a rich client side.

Features:

  • The site has 2 modes: Database (Mysql) mode and a database-less mode.
  • Authentication
    • Support for no-authentication/Guest mode at local network.
  • Recursive directory scan.
  • On the fly thumbnail generation with cache.
  • On the fly directory indexing (for database mode).
  • Nice lightbox for image preview (using blueimp* gallery).
  • Supports image keywords (like lightroom keywords).
  • Search in file names, directory names, keywords (db-mode only).
  • Designed for low* resource serves (weak CPU, low bandwidth)
  • Translation support (English, Hungarian)

Installation:

  • Install PHP, and a webserver (Apache, Nginx) on your device and a (optional) database server (mysql, mariadb)
  • Download the latest (it contains minfied files) release (v0.99.1) from github, extract it in your www directory (or in a subdirectory)
  • Open config.php and edit the configurations according to the comments.
  • If you're using the database mode, be sure that the database you set in the config.php exists'
  • Login with user: admin, pass: admin (or whatever you set in config.php)
  • In database mode, click on admin panel and click index photos, or enable on the fly indexing in the config.php (but in this case the manual indexing will still be at the admin panel)

Notes:

  • Site is using mysqli for accessing database. It should be enabled in php.ini.
  • For thumbnail generation, the package php-gd is needed.
  • Webserver's user (e.g: www-data for Nginx) needs read and write rights for the thumbnail folder, and read rights for the images folder.
  • For best performance don't store too many photos in a directory (best is under 200-300).
  • At large directories, PHP timeout may occur; if this is the case, increase the timeout in php.ini.
  • For faster thumbnail generating user less thumbnail sizes (eg.: only one, with a low value such as 150) and disable image resampling in config.php.

ScreenShot:

screenshot

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.