I have been looking for a program that could display my personal pictures on the web using my personal server.
I found this two options: phpAlbum and spgm (Simple Picture Gallery Manager), I will try to resume the pro and cons of both options.
Both of them do not use any kind of database so it is easy to handle the folders as I please. Also, both are written in php so the modifications are kind of easy to do.
1 – phpAlbum
- Last version is 0.4.1-14_fix06 generated on July/2009
- Patrik still working on it and the code is on code.google at phpAlbum-net
- It does not work very well with lots of pictures. It takes long time creating the cache.
- Has a nice administration page to change the settings of the application.
2 – Simple Picture Gallery Manager
- Release 1.4.7 was done in January of 2007
- Source code is on SourceForge .
- It is very easy to modify and to understand the php logic.
- It is really fast loading the pictures.
- Has a module to integrate video
- It requires to create thumbnails for each picture. XnView help with this task.
- No too many flavors around. spgm home page gives a database error.
- Under the new version of php the deprecated ‘eregi’ has to be changed for preg_match.
For instance:
if ( eregi($spgm_cfg['global']['supportedExtensions'][$i].'$', $strPictureFileName) ) {
should be changed for
if ( preg_match('@'.$spgm_cfg['global']['supportedExtensions'][$i].'$@i', $strPictureFileName) ) {
Ok, that’s it for tonight.