Gallerix 1.0 Documentation

Introduction

Gallerix is a photo album module for Drupal. It it's AJAX-centric but still relies on traditional methods to upload and manage pictures. Gallerix allows for per-user albums, and also includes an optional security mode.


Installation

Gallerix relies on a few essential PHP privileges to work properly. During installation, Gallerix will perform the following operations:


Requirements


Recommended

Options

Security

Gallerix provides no node access management, because this is best left to more specialized modules. What Gallerix can do, however, is make sure users stay within the realm of pictures they are allowed to see.

For example, lets say you nave node 20 with 4 pictures in it, with PIDs 1, 2, 3, 4. Then you also have node 25 which is only viewable by a few users (using your favorite node access module). Node 25 has 2 pictures in it, with PIDs 10, and 11.

In our example, when secure mode is activated, Gallerix will make sure users are only viewing pictures that belong to the NID they are in. That is, they can't just change the URL or the AJAX request to view pictures outside of the current node. With secure mode off, Gallerix will simply show whatever PID is requested, with no integrity checks.

Secure mode utilizes a variety of checks to perform its job, but the most important one is that it changes filenames to avoid sequential access. This is done using a SHA1 algorithm to every uploaded file. Of course, the original filename is lost. Similarly, the “sort by filename” option becomes useless since there will be no pattern in the new names.


Adding Pictures

Creating albums using Gallerix is a two step process. First you must create the album just like any other node in Drupal. The title becomes the album name, and the body is an internal description that users will not see. You can also select a sort order that overrides the default sort order, if you wish to do so.

Once the album has been created, you'll be taken to the main viewing page, which will tell you the album is empty. Click on the tab that says “Manage Pictures” to add pictures to the album. You can also remove pictures from the album through this screen, and add captions to existing pictures.

Captions will appear when you hover over a thumbnail. Other modules can also make use of the caption feature. Note that if you enable the “Extract EXIF” option, Gallerix will use the ImageDescription field as the caption field. If there's no ImageDescription, it will use Title. If there's no title, it'll leave it blank for the user to fill in.



Mass Operations

If you decide to change the default sort order, you should run “Resort Albums” on all Gallerix albums. This will only resort the albums that did not override the default sort order. Albums that do override the default sort order do not need to be resorted manually, they will automatically resort themselves upon submitting the edit form.

If you change the resolution of thumbnails or full pictures, you need to run “Rebuild Derivatives” on all the albums you wish to update. Keep in mind that building derivatives is an extremely intensive operation that will probably monopolize the server.


Gallerix Widget Engine

Although Gallerix is a robust module capable of managing all of your image needs, it becomes even more useful and powerful when paired with the Gallerix Widget Engine. When enabled, the engine will allow a variety to widgets to attach themselves to each image. The engine itself is bundled with four widgets:


Although Gallerix is open source and available for no charge, the Gallerix Widget Engine is only available through a (small) paid license. To purchase the license, visit http://the.failbo.at/gallerix to learn more.


Change Log