2017 © Pedro Pelรกez
 

library sgallery

Static Gallery

image

hoborglabs/sgallery

Static Gallery

  • Monday, June 8, 2015
  • by woledzki
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 0 % Grown

The README.md

SGallery

SGallery stands for SimpleGallery or SpeedeGallery or SuperfastGallery or ... you get the idea., (*1)

curl -O http://get.hoborglabs.com/sgallery/sg.phar
chmod +x sg.phar
./sg.phar configure
./sg.phar install
./sg.phar update

Main Principles

Whole gallery is generated up-front using your folder with photos. And by whole gallery I mean HTML, JSON for frontend ajax calls, CSS, JS, and image thumbnails.
You can use it to generate your gallery on your PC and upload it to your web server., (*2)

You need PHP 5.3 (or higher) to run it from command line., (*3)

After installing and configuring all you need to do is run single command, (*4)

./sg.phar update

and that's it!, (*5)

Installation

Download Simple Gallery, (*6)

curl -O http://get.hoborglabs.com/sgallery/sg.phar
chmod +x sg.phar

Development

Clone repo, (*7)

git clone git://github.com/hoborglabs/sgallery.git
cd sgallery

Install vendors, (*8)

curl -s https://getcomposer.org/installer | php
php composer.phar update

If you want to update JS, you will have to run following command after putting your changes., (*9)

ant build.js
php src/sg.php install:assets

If you want to update CSS, you need to run the following command after changing CSS files, (*10)

ant build.css
php src/sg.php install:assets

Configuration

To configure or re-configure sgallery simply run ./sg.phar configure. You can also manualy edit 'sg.properties' and specify source folder with your images, and target folder for generating gallery assets and all other options., (*11)

source

Source folder with your photos., (*12)

source = '/Users/wojtek/Pictures/'

target

Target folder - usually public folder of your host, (*13)

target = '/var/www/sgallery/public'

skin

Skin name, being a folder name inside templates., (*14)

skin = hoborglabs

language

Language., (*15)

language = en

public files and folders mode

public.folderMode = 0755
public.fileMode = 0644

thumbnails

; Quality for generated thumbnails. 100 no compression, 0 full
; compression.
thumbnails.quality = 75

; Size for generated thumbnails
thumbnails.size = 230

; Max width or height of your source Image. Depending on your PHP
; memory limit settings. For 128M keep it around 4000.
thumbnails.sourceMaxSize = 4000

covers limits

covers.limit.2tile = 16
covers.limit.1tile = 8

Folder Structure

After running SG you will find following folders in your target folder., (*16)

โ”œโ”€โ”€ albums
|   โ”œโ”€โ”€ your-album-01
|   โ””โ”€โ”€ ...
โ”œโ”€โ”€ index.html
โ””โ”€โ”€ static
    โ”œโ”€โ”€ json
    โ”œโ”€โ”€ scripts
    โ”œโ”€โ”€ styles
    โ””โ”€โ”€ thumbnails

The Versions

08/06 2015

dev-master

9999999-dev

Static Gallery

  Sources   Download

The Requires

 

The Development Requires

08/06 2015

dev-tkt-61

dev-tkt-61

Static Gallery

  Sources   Download

The Requires

 

The Development Requires

07/02 2015

dev-tkt-59

dev-tkt-59

Static Gallery

  Sources   Download

The Requires

 

21/12 2014

v1.3.2

1.3.2.0

Static Gallery

  Sources   Download

The Requires

 

20/12 2014

v1.3.1

1.3.1.0

Static Gallery

  Sources   Download

The Requires

 

17/12 2014

v1.3.0

1.3.0.0

Static Gallery

  Sources   Download

The Requires

 

16/12 2014

v1.2.0

1.2.0.0

Static Gallery

  Sources   Download

The Requires

 

12/12 2014

v1.1.0

1.1.0.0

Static Gallery

  Sources   Download

The Requires

 

14/10 2013

v1.0.0

1.0.0.0

Static Gallery

  Sources   Download

The Requires

 

25/07 2013

v0.3.4

0.3.4.0

Static Gallery

  Sources   Download

The Requires

 

12/07 2013

v0.3.3

0.3.3.0

Static Gallery

  Sources   Download

The Requires

 

12/07 2013

v0.3.2

0.3.2.0

Static Gallery

  Sources   Download

The Requires

 

10/07 2013

v0.3.1

0.3.1.0

Static Gallery

  Sources   Download

The Requires

 

04/07 2013

v0.3.0

0.3.0.0

Static Gallery

  Sources   Download

The Requires

 

15/01 2013

v0.2.1

0.2.1.0

Static Gallery

  Sources   Download

The Requires

 

15/01 2013

v0.2.0

0.2.0.0

Static Gallery

  Sources   Download

The Requires

 

14/01 2013

v0.1.0

0.1.0.0

Static Gallery

  Sources   Download

The Requires