A web-based photo gallery that can be easily integrated into your website. Includes server-side image processing script that can be run on the command-line or by cron job.
Check out the online demo at: http://mbrooks.info/demos/gratis-photo-viewer
Filename | Mode |
---|---|
galery | 777 |
config.txt | 755 |
install.pl | 755 |
1. Download the source archive to your web server using the ''wget'' or equivalent command.
wget http://trac.mbrooks.info/gratis-photo-viewer/browser/branches/gratis-photo-viewer-x.x.tar.gz
2. Extract the contents of the ''tar.gz'' on your web server.
tar xfz gratis-photo-viewer-x.x.tar.gz
3. Change the permissions for the following files:
chmod 777 photos chmod 755 process.pl viewer.pl
4. Modify the configuration (config.txt) and crontab (stuff/crontab).
5. Install the new crontab.
crontab stuff/crontab.txt
6. Remove the installer script.
rm install.pl
To manually parse images on the command-line:
./process.pl --dir /path/to/htdocs/gallery/photos --small 50 50 90 --medium 80 80 90
To automatically process new images. Add the following lines below to your crontab.
*/5 * * * * /path/to/htdocs/gallery/process.pl --dir /path/to/htdocs/gallery/photos
This project's repository can be checked out through ''SVN'' using the command:
svn checkout https://gratis-viewer.svn.sourceforge.net/svnroot/gratis-viewer gratis-photo-viewer
For feedback, bug reports, or other comments, please contact me at: devel at mbrooks dot info
This package is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
Gratis Photo Viewer is provided under the terms of the BSD "Free as in Beer" license.
Gratis Photo Viewer ©2006-2011 Marc S. Brooks