PIVIAU Documentation
Summary
What is PIVIAU
PIVIAU is a PHP/MySQL web based gallery for your pictures, videos and audio that supports tags and exif for jpeg photos.
You can see PIVIAU in action at http://motscousus.com/pics/.
Features
- tags
-
albums and pictures have searchable tags,country,city,place,date,subject and author. It should be quite straight forward to add any type of tag.
- search function
-
easy to use seach function.
- rss feed
-
rss feed available for every seach you can do (for instance recently added photos).
- slideshow
-
ajax powered slideshow with fading effect.
- picture resize
-
pictures are resized automatically using PHP GD image functions.
- videos
-
video are viewable using a video flash player (FLVPlayer).
- audio
-
audio (wav and mp3) supported via a flash player (FLVPlayer).
- exif support
-
exif supported via PHP exif functions to extract picture date.
- XHTML + CSS
-
Generated HTML is valid XHTML code. General look of the gallery can easily be changed (from color palette to the layout) just by adapting the CSS.
Requirements
- Apache
-
tested with apache 2.0, should work ok with apache 1.3.
- Apache mod_rewrite
-
mod_rewrite is not mandatory, but needed for pretty URLs.
- PHP
-
Tested fine with PHP 5, should work with php4.
- PHP GD images functions
-
PHP must have mod_gd enabled in order to resize pictures.
- PHP EXIF images functions
-
PHP must have exif support enabled in order to retrieve picture dates.
- MySQL
-
MySQL is needed to store pictures and album information and search it. MySQL version 5 is needed because PIVIAU relies on heavy SQL sub-queries. It could how ever work with MySQL 4 and 3 with some (a lot of ?) SQL customisation.
- PHP ADOdb
-
Underlying DB access library. downloadable from ADOdb website. (included in PIVIAU package)
- ffmpeg
-
Not mandatory but needed to generate videos thumbnails and previews. In order to get sound working in videos enable MP3 encoding.
- flvtool2
-
Not mandatory but needed if you want to have the nice progress bar in the flash based video player. available as a static EXE on windows and a Ruby scrip on unix.
- ruby language
-
not mandatory, but used by flvtool2 on unix. easy installable packages available for all linux distributions.
Download
http://piviau.motscousus.com/releases/
History
- 1.4
-
- 05-feb-2008
- change: simplfied config.inc.php
- add: Google Maps API intergation
- add: exif geotag parsing
- add: MP3 flash based player
- fix: fixed some SQL queries
- change: picture and picture list outputed before left contextual menu in html code
- 1.3
-
- 24-jan-2007
- change: simplfied config.inc.php
- add: generated CSS and RSS HTTP 304 cacheable
- add: admin section improved
- fix: fixed some SQL queries
- fix: fixed some reference vs. value errors
- 1.2
-
- 22-nov-2006
- add: thumb and preview generated on the fly.
- add: javascript show/hide long list of tags in refine section
- add: admin section to scan pictures and edit tag created under /admin
- add: css in now generated in php for simplier dimensioning of the elements
- fix: slideshow is not looping forever anymore
- fix: fixed url /date[0-9]+days not working
- fix: improved relation number of occurence => size of tag on screen (index page and refine scetion)
- fix: exact number of picture per tag shown in refine section
- fix: glob replacement fonction fixed
- 1.1
-
- 09-Oct-2006
- add: table_prefix in configuration for more ease in installation
- fix: /pics/ hardcoded in slideshow javascript
- add: moved skipTagsRegExp to config file (used to skip some part of the filename, the one that are generated by digicams)
- add: title in config
- fix: missing glob() function for free.fr
- fix: include path via set_ini for free.fr not possible
- 1.0
-
- 30-Aug-2006
- add: more comments in config.inc.php
- add: updated documentation
- add: split browse.php into browse.php and rss.php
- fix: do not include videos and audio in slideshow
- 0.9
-
- 15-Aug-2006
- add: Ajax SlideShow
- fix: thumbnails have a more human name
- various fixes
- 0.8
-
- 01-Aug-2006
- 1st public release
Installation
gallery installation
- download the install packages from http://piviau.motscousus.com/releases/
- unzip the package and install some where on your webserver
- create album folder where the pictures and ablum are stored, usually piviau-root/albums
- create thumbnails and previews folder, usually piviau-root/thumbnails and piviau-root/previews
- update your apache mod_rewrite config (here is my config as a base, piviau is installed under /pics)(optional)
- update config.inc.php to match you particular setup
database creation
- create a database to store the gallery tables
- setup an access to that db
- use db.sql to create neededdb tables.
- update config.inc.php db variables to match your setup
import some pictures
- copy some albums and pictures to your albums directory
- run the update tool. locate at piviau-root/admin/
User's Manual
- project hierachy
-
- root folder
- contains the picture browser, slideshow,rss and video player. it also holds the config.inc.php configuration file.
- admin
- the updater php and sh scripts. The directory should be password proctected by an .htaccess file or similar.
- albums
- where the albums sub albums and original pictures are stored
- css
- holds the css
- icons
- contains icons (audio file thumbnail)
- includes
- contains all the needed includes
- js
- contains javascript scripts (for ajax slideshow mostly)
- previews
- where pictures and videos thumbnails are generated and stored
- thumbnails
- where pictures and videos thumbnails are generated and stored
- picture name format
-
All picture tags and info are contained in the picture name. This way you can easily move your site from one hoster to another without loosing everything
Picture name should follow this pattern [picture_name.][title.][TagnameTagvalue.]... .extension
this could give you the following :
- IMG_3096.tagsea.tagkite.tagkitesurf.JPG
- flowers_and_cranes.tagcrane.tagvegetal.jpg
- MVI_1752.date2005-10-15.tagfire.tagtorch.tagnight.AVI
- IMG_3108.cover.tagtree.tagleaf.placeparc_de_la_villette.tagblue.taggreen.JPG
- fog_rays.tagroad.tagfog.tagray.jpg
- album description
-
the content of the file desc.txt in the album folder will be used as folder description. (it is not yet displayed on the web interface yet though)
- album tags
-
Albums tags are heritated by each picture in that album and sub folder.
They are file parsed from the file tags.txt
format tagname: tagvalue1, tagvalue2
example :
place:
city:paris
country:france
subject:
author:
tag:impasse,street
FAQ
- Will I add features?
-
maybe. Just ask me.
- What does Piviau mean ?
-
Simple ! PIctures, VIdeos, AUdio.
Thanks
- antoine
-
for ibrouteur as interface base for this gallery
Licence
All the works where the author is not specified or specified as "me" or any other term which would clearly represent myself are licenced under the CC-GNU GPL.
The use of any other works than those desribed here-upon cannot be achieved without prior contact with their authors.
mots a.t motscousus.com