To install gallery you need download the WAR file and deploy it at your application server. Current version can be get from here: Gallery.war. After simple configuration tuning your gallery will be ready to use.
For image processing gallery use additional programs from the ImageMagick package, which must be installed at your system. Current Gallery.war package tested at the Tomcat5.5 environment, so you need to choose application server with the same set of features (i.e. Java 5 support).
before you start using your gallery you have to configure some variables in the configuration file. This file could be find at the Gallery's web application home in [Gallery home]/config/config.properties. Format of this file is simple and easy to understand:
image.dir=[place path to you image directory here] theme=default cache.dir=[place path to directory where images will be cached] name=[your gallery name] thumbnail.width=120 thumbnail.height=120 #Followed threee lines defines path to imageMagick utilities: convert=/usr/bin/convert identify=/usr/bin/identify composite=/usr/bin/composite default.size=800x600 allowed.sizes=320x240 640x480, 1024x768, 1280x1024 #[path to watermark file relatively to the image.dir] watermark=.watermark.png #Watermark dissolve in % dissolve=15 #Watermark positioning (possible values are: # NorthWest, North, NorthEast, West, Center, East, SouthWest, South, SouthEast) gravity=SouthEast #Use background resize thread background.resize=yes #create thumbnails in background background.resize.thumbnails=yes # create resized images in background # BEWARE! it will consume much HDD space and CPU time if you set this value to "yes". background.resize.images=no
After that you can upload your images to the image.dir and access them from web. Just point your browser somewhree like: http://[my web site address]:8080/Gallery/
you can define some properties for per file and/or album in your gallery. To do it you can just place the [directory or file name].properties file in the directory where you file located. Every .properties file can contain few options:
alt=[name wich will be use in image alt attribute] title=[name used for title attribute and title for the web page] watermark=[watermark file (leave blank i you do not want to add watermearks)] thumbnail=[file used as album icon]
Note: thumbnail parameter only applicable for albums,watermark and thumbnail filesnames must be relative to the image.dir path configured in main config file.
Save your configuration file before making update!