genwebgallery

changeset 0:9f4fa0bc1584 0.3

initial commit
author meillo@marmaro.de
date Thu, 22 Nov 2007 21:13:25 +0100
parents
children 0947e06af4c4
files .hgignore COPYRIGHT Makefile TODO debian/changelog debian/compat debian/control debian/copyright debian/docs debian/rules genwebgallery genwebgallery.1
diffstat 12 files changed, 560 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/.hgignore	Thu Nov 22 21:13:25 2007 +0100
     1.3 @@ -0,0 +1,6 @@
     1.4 +syntax: glob
     1.5 +*~
     1.6 +*.swp
     1.7 +
     1.8 +Packages
     1.9 +*.tar.gz
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/COPYRIGHT	Thu Nov 22 21:13:25 2007 +0100
     2.3 @@ -0,0 +1,22 @@
     2.4 +License: MIT License
     2.5 +
     2.6 +Copyright: 2007 by markus schnalke
     2.7 +
     2.8 +Permission is hereby granted, free of charge, to any person obtaining
     2.9 +a copy of this software and associated documentation files (the
    2.10 +"Software"), to deal in the Software without restriction, including
    2.11 +without limitation the rights to use, copy, modify, merge, publish,
    2.12 +distribute, sublicense, and/or sell copies of the Software, and to
    2.13 +permit persons to whom the Software is furnished to do so, subject to
    2.14 +the following conditions:
    2.15 +
    2.16 +The above copyright notice and this permission notice shall be included
    2.17 +in all copies or substantial portions of the Software.
    2.18 +
    2.19 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    2.20 +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    2.21 +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    2.22 +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    2.23 +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    2.24 +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    2.25 +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/Makefile	Thu Nov 22 21:13:25 2007 +0100
     3.3 @@ -0,0 +1,63 @@
     3.4 +# genwebgallery by meillo@marmaro.de
     3.5 +
     3.6 +
     3.7 +NAME=genwebgallery
     3.8 +VERSION = 0.3
     3.9 +NV=${NAME}-${VERSION}
    3.10 + 
    3.11 +# paths 
    3.12 +PREFIX = /usr
    3.13 +BINDIR = ${PREFIX}/bin
    3.14 +MANDIR = ${PREFIX}/share/man
    3.15 +
    3.16 +all:
    3.17 +	@echo usage: make [un]install
    3.18 +
    3.19 +build:
    3.20 +	@echo build unneeded
    3.21 +
    3.22 +dist:
    3.23 +	@mkdir ${NV}
    3.24 +	@cp -f ${NAME} ${NAME}.1 Makefile TODO COPYRIGHT ${NV}
    3.25 +	@tar -czhof ${NV}.tar.gz ${NV}
    3.26 +	@rm -rf ${NV}
    3.27 +
    3.28 +install:
    3.29 +	@echo installing executable file to ${DESTDIR}${BINDIR}
    3.30 +	@mkdir -p ${DESTDIR}${BINDIR}
    3.31 +	@cp -f ${NAME} ${DESTDIR}${BINDIR}
    3.32 +	@chmod 755 ${DESTDIR}${BINDIR}/${NAME}
    3.33 +	@echo installing manual page to ${DESTDIR}${MANDIR}/man1
    3.34 +	@mkdir -p ${DESTDIR}${MANDIR}/man1
    3.35 +	@sed 's/VERSION/${VERSION}/g' < ${NAME}.1 > ${DESTDIR}${MANDIR}/man1/${NAME}.1
    3.36 +	@chmod 644 ${DESTDIR}${MANDIR}/man1/${NAME}.1
    3.37 +
    3.38 +uninstall:
    3.39 +	@echo removing executable file from ${DESTDIR}${BINDIR}
    3.40 +	@rm -f ${DESTDIR}${BINDIR}/${NAME}
    3.41 +	@echo removing manual page from ${DESTDIR}${MANDIR}/man1
    3.42 +	@rm -f ${DESTDIR}${MANDIR}/man1/${NAME}.1
    3.43 +
    3.44 +deb: dist
    3.45 +	@mkdir -p Packages
    3.46 +	@cp ${NV}.tar.gz Packages/
    3.47 +	( \
    3.48 +		cd Packages/ ;\
    3.49 +		tar -xzf ${NV}.tar.gz ;\
    3.50 +		mv ${NV}.tar.gz ${NAME}_${VERSION}.orig.tar.gz ;\
    3.51 +		cd ${NV}/ ;\
    3.52 +		cp -r ../../debian/ . ;\
    3.53 +		debuild ;\
    3.54 +	 )
    3.55 +
    3.56 +clean:
    3.57 +	@echo clean unneeded
    3.58 +
    3.59 +distclean: clean
    3.60 +	@rm -f ${NAME}-*.tar.gz
    3.61 +
    3.62 +debclean:
    3.63 +	@cd Packages/${NV}/ ; debuild clean ;
    3.64 +
    3.65 +
    3.66 +.PHONY: all clean build install uninstall
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/TODO	Thu Nov 22 21:13:25 2007 +0100
     4.3 @@ -0,0 +1,4 @@
     4.4 +TODO:
     4.5 +
     4.6 +- security checks
     4.7 +- navigation in pic pages
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/debian/changelog	Thu Nov 22 21:13:25 2007 +0100
     5.3 @@ -0,0 +1,40 @@
     5.4 +genwebgallery (0.3-1) unstable; urgency=low
     5.5 +
     5.6 +  * new upstream release
     5.7 +
     5.8 + -- markus schnalke <meillo@marmaro.de>  Thu, 22 Nov 2007 20:23:10 +0100
     5.9 +
    5.10 +
    5.11 +genwebgallery (0.2-3) unstable; urgency=low
    5.12 +
    5.13 +  * fixed man page
    5.14 +
    5.15 + -- markus schnalke <meillo@marmaro.de>  Thu, 22 Nov 2007 00:10:10 +0100
    5.16 +
    5.17 +
    5.18 +genwebgallery (0.2-2) unstable; urgency=low
    5.19 +
    5.20 +  * minor fixes in code
    5.21 +
    5.22 + -- markus schnalke <meillo@marmaro.de>  Wed, 21 Nov 2007 23:53:10 +0100
    5.23 +
    5.24 +
    5.25 +genwebgallery (0.2-1) unstable; urgency=low
    5.26 +
    5.27 +  * new upstream release
    5.28 +
    5.29 + -- markus schnalke <meillo@marmaro.de>  Wed, 21 Nov 2007 23:13:10 +0100
    5.30 +
    5.31 +
    5.32 +genwebgallery (0.1-2) unstable; urgency=low
    5.33 +
    5.34 +  * improved packaging
    5.35 +
    5.36 + -- markus schnalke <meillo@marmaro.de>  Wed, 21 Nov 2007 22:07:54 +0100
    5.37 +
    5.38 +
    5.39 +genwebgallery (0.1-1) unstable; urgency=low
    5.40 +
    5.41 +  * Initial release
    5.42 +
    5.43 + -- markus schnalke <meillo@marmaro.de>  Tue, 20 Nov 2007 23:09:23 +0100
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/debian/compat	Thu Nov 22 21:13:25 2007 +0100
     6.3 @@ -0,0 +1,1 @@
     6.4 +5
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/debian/control	Thu Nov 22 21:13:25 2007 +0100
     7.3 @@ -0,0 +1,16 @@
     7.4 +Source: genwebgallery
     7.5 +Section: web
     7.6 +Priority: extra
     7.7 +Maintainer: markus schnalke <meillo@marmaro.de>
     7.8 +Build-Depends: debhelper (>= 5)
     7.9 +Standards-Version: 3.7.2
    7.10 +
    7.11 +Package: genwebgallery
    7.12 +Architecture: all
    7.13 +Depends: ${shlibs:Depends}, ${misc:Depends}, imagemagick
    7.14 +Description: generates a web gallery with static html
    7.15 + *** unofficial package from meillo@marmaro.de ***
    7.16 + .
    7.17 + Very simple tool to generate static html pages to view pictures on the web.
    7.18 + .
    7.19 + Homepage: http://prog.marmaro.de
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/debian/copyright	Thu Nov 22 21:13:25 2007 +0100
     8.3 @@ -0,0 +1,33 @@
     8.4 +This package was debianized by markus schnalke <meillo@marmaro.de> on
     8.5 +Thu, 22 Nov 2007 20:24:08 +0100.
     8.6 +
     8.7 +It was downloaded from http://prog.marmaro.de
     8.8 +
     8.9 +Upstream Author: markus schnalke <meillo@marmaro.de>
    8.10 +
    8.11 +Copyright: 2007 by markus schnalke
    8.12 +
    8.13 +License: MIT License
    8.14 +
    8.15 +Permission is hereby granted, free of charge, to any person obtaining
    8.16 +a copy of this software and associated documentation files (the
    8.17 +"Software"), to deal in the Software without restriction, including
    8.18 +without limitation the rights to use, copy, modify, merge, publish,
    8.19 +distribute, sublicense, and/or sell copies of the Software, and to
    8.20 +permit persons to whom the Software is furnished to do so, subject to
    8.21 +the following conditions:
    8.22 +
    8.23 +The above copyright notice and this permission notice shall be included
    8.24 +in all copies or substantial portions of the Software.
    8.25 +
    8.26 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    8.27 +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    8.28 +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    8.29 +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    8.30 +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    8.31 +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    8.32 +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    8.33 +
    8.34 +
    8.35 +The Debian packaging is (C) 2007, markus schnalke <meillo@marmaro.de> and
    8.36 +is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/debian/docs	Thu Nov 22 21:13:25 2007 +0100
     9.3 @@ -0,0 +1,2 @@
     9.4 +TODO
     9.5 +COPYRIGHT
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/debian/rules	Thu Nov 22 21:13:25 2007 +0100
    10.3 @@ -0,0 +1,98 @@
    10.4 +#!/usr/bin/make -f
    10.5 +# -*- makefile -*-
    10.6 +# Sample debian/rules that uses debhelper.
    10.7 +# This file was originally written by Joey Hess and Craig Small.
    10.8 +# As a special exception, when this file is copied by dh-make into a
    10.9 +# dh-make output file, you may use that output file without restriction.
   10.10 +# This special exception was added by Craig Small in version 0.37 of dh-make.
   10.11 +
   10.12 +# Uncomment this to turn on verbose mode.
   10.13 +#export DH_VERBOSE=1
   10.14 +
   10.15 +
   10.16 +
   10.17 +
   10.18 +CFLAGS = -Wall -g
   10.19 +
   10.20 +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
   10.21 +	CFLAGS += -O0
   10.22 +else
   10.23 +	CFLAGS += -O2
   10.24 +endif
   10.25 +
   10.26 +configure: configure-stamp
   10.27 +configure-stamp:
   10.28 +	dh_testdir
   10.29 +	# Add here commands to configure the package.
   10.30 +
   10.31 +	touch configure-stamp
   10.32 +
   10.33 +
   10.34 +build: build-stamp
   10.35 +
   10.36 +build-stamp: configure-stamp 
   10.37 +	dh_testdir
   10.38 +
   10.39 +	# Add here commands to compile the package.
   10.40 +	$(MAKE)
   10.41 +	#docbook-to-man debian/genwebgallery.sgml > genwebgallery.1
   10.42 +
   10.43 +	touch $@
   10.44 +
   10.45 +clean:
   10.46 +	dh_testdir
   10.47 +	dh_testroot
   10.48 +	rm -f build-stamp configure-stamp
   10.49 +
   10.50 +	# Add here commands to clean up after the build process.
   10.51 +	-$(MAKE) clean
   10.52 +
   10.53 +	dh_clean 
   10.54 +
   10.55 +install: build
   10.56 +	dh_testdir
   10.57 +	dh_testroot
   10.58 +	dh_clean -k 
   10.59 +	dh_installdirs
   10.60 +
   10.61 +	# Add here commands to install the package into debian/genwebgallery.
   10.62 +	$(MAKE) DESTDIR=$(CURDIR)/debian/genwebgallery install
   10.63 +
   10.64 +
   10.65 +# Build architecture-independent files here.
   10.66 +binary-indep: build install
   10.67 +	dh_testdir
   10.68 +	dh_testroot
   10.69 +	dh_installchangelogs 
   10.70 +	dh_installdocs
   10.71 +	dh_installexamples
   10.72 +#	dh_install
   10.73 +#	dh_installmenu
   10.74 +#	dh_installdebconf	
   10.75 +#	dh_installlogrotate
   10.76 +#	dh_installemacsen
   10.77 +#	dh_installpam
   10.78 +#	dh_installmime
   10.79 +#	dh_python
   10.80 +#	dh_installinit
   10.81 +#	dh_installcron
   10.82 +#	dh_installinfo
   10.83 +	dh_installman
   10.84 +	dh_link
   10.85 +	dh_strip
   10.86 +	dh_compress
   10.87 +	dh_fixperms
   10.88 +#	dh_perl
   10.89 +#	dh_makeshlibs
   10.90 +	dh_installdeb
   10.91 +	dh_shlibdeps
   10.92 +	dh_gencontrol
   10.93 +	dh_md5sums
   10.94 +	dh_builddeb
   10.95 +
   10.96 +# Build architecture-dependent files here.
   10.97 +binary-arch: build install
   10.98 +# We have nothing to do by default.
   10.99 +
  10.100 +binary: binary-indep binary-arch
  10.101 +.PHONY: build clean binary-indep binary-arch binary install configure
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/genwebgallery	Thu Nov 22 21:13:25 2007 +0100
    11.3 @@ -0,0 +1,208 @@
    11.4 +#!/bin/sh
    11.5 +#
    11.6 +# generates a web gallery of static web pages
    11.7 +# requires: ImageMagick (convert)
    11.8 +#
    11.9 +# meillo@marmaro.de
   11.10 +#
   11.11 +
   11.12 +
   11.13 +targetDir="web"
   11.14 +index="index.htm"
   11.15 +sizePic=640
   11.16 +sizeThumb=200
   11.17 +galleryTitle="gallery title"
   11.18 +copyright="please mind the copyright"
   11.19 +
   11.20 +verbose=""
   11.21 +
   11.22 +
   11.23 +function checkCreateDir() {
   11.24 +	if [ -d "$targetDir" ] ; then
   11.25 +		echo "Target dir '$targetDir' already exists."
   11.26 +		echo -n "remove it? [y/n] "
   11.27 +
   11.28 +		read remove
   11.29 +		if [ $remove = "y" ] ; then
   11.30 +			rm -r "$targetDir"
   11.31 +			echo "removing '$targetDir' ..."
   11.32 +		else
   11.33 +			exit 1
   11.34 +		fi
   11.35 +	fi
   11.36 +	mkdir -p "$targetDir"
   11.37 +}
   11.38 +
   11.39 +
   11.40 +
   11.41 +function insertHeader() {
   11.42 +  echo <<EOF
   11.43 +<?xml version="1.0" encoding="utf-8"?>
   11.44 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
   11.45 +  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
   11.46 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
   11.47 +<head>
   11.48 +<title>$titleName</title>
   11.49 +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   11.50 +  <meta name="Generator" content="genwebgallery - see http://prog.marmaro.de" />
   11.51 +</head>
   11.52 +<body>
   11.53 +
   11.54 +EOF
   11.55 +}
   11.56 +
   11.57 +
   11.58 +function insertFooter() {
   11.59 +	echo <<EOF
   11.60 +
   11.61 +</body>
   11.62 +</html>
   11.63 +EOF
   11.64 +}
   11.65 +
   11.66 +
   11.67 +function log() {
   11.68 +	if [ $verbose ] ; then
   11.69 +		echo "$1";
   11.70 +	fi
   11.71 +}
   11.72 +
   11.73 +
   11.74 +function checkConvert() {
   11.75 +	log "checking convert installation"
   11.76 +	(convert -version) 2> /dev/null > /dev/null
   11.77 +	if [ $? -ne 0 ] ; then
   11.78 +		echo "Error: Can not find 'convert' (package imagemagick)"
   11.79 +		echo "ABORT!"
   11.80 +		exit 2
   11.81 +	fi
   11.82 +	log "`convert -version`"
   11.83 +}
   11.84 +
   11.85 +
   11.86 +####
   11.87 +
   11.88 +
   11.89 +
   11.90 +if [ $# -eq 0 ] ; then
   11.91 +	echo "usage: `basename $0` [OPTIONS] FILES"
   11.92 +	exit 0
   11.93 +fi
   11.94 +
   11.95 +
   11.96 +while [  "$#" -ge 1  -a  "${1:0:1}" = '-'  ] ; do
   11.97 +	case $1 in
   11.98 +		'--version')
   11.99 +			echo "genwebgallery version 0.3"
  11.100 +			exit 0
  11.101 +			;;
  11.102 +		'--help')
  11.103 +			echo "`basename $0`
  11.104 +
  11.105 +generates a web gallery consisting of html pages
  11.106 +
  11.107 +usage: `basename $0` [OPTIONS] FILES
  11.108 +
  11.109 +options:
  11.110 +	--version: echo program version
  11.111 +	--help: display this output
  11.112 +	-v: be verbose
  11.113 +	-o DIR: all generated content is copied to this folder
  11.114 +	-i FILE: the name of the index file (index.htm)
  11.115 +	-t TITLE: title of the gallery
  11.116 +	-c COPYRIGHT: a copyright notice
  11.117 +	-ps PIXELS: size of the pics
  11.118 +	-ts PIXELS: size of the thumbnails
  11.119 +
  11.120 +author: meillo@marmaro.de
  11.121 +homepage: http://prog.marmaro.de
  11.122 +"
  11.123 +			exit 0
  11.124 +			;;
  11.125 +		'-v' | '--verbose')
  11.126 +			verbose=1
  11.127 +			shift
  11.128 +			;;
  11.129 +		'-o' | '--output')
  11.130 +			targetDir=$2
  11.131 +			shift
  11.132 +			shift
  11.133 +			;;
  11.134 +		'-i' | '--index')
  11.135 +			index=$2
  11.136 +			shift
  11.137 +			shift
  11.138 +			;;
  11.139 +		'-t' | '--title')
  11.140 +			galleryTitle=$2
  11.141 +			shift
  11.142 +			shift
  11.143 +			;;
  11.144 +		'-c' | '--copyright')
  11.145 +			copyright=$2
  11.146 +			shift
  11.147 +			shift
  11.148 +			;;
  11.149 +		'-ps' | '--pic-size')
  11.150 +			sizePic=$2
  11.151 +			shift
  11.152 +			shift
  11.153 +			;;
  11.154 +		'-ts' | '--thumb-size')
  11.155 +			sizeThumb=$2
  11.156 +			shift
  11.157 +			shift
  11.158 +			;;
  11.159 +		*)
  11.160 +			echo "invalid option: $1"
  11.161 +			echo "see: `basename $0` --help"
  11.162 +			exit 1
  11.163 +	esac
  11.164 +
  11.165 +done
  11.166 +
  11.167 +if [ $# -eq 0 ] ; then
  11.168 +	echo "usage: `basename $0` [OPTIONS] FILES"
  11.169 +	exit 0
  11.170 +fi
  11.171 +
  11.172 +
  11.173 +# verbose output
  11.174 +log "verbose on"
  11.175 +log "output dir is: $targetDir"
  11.176 +log "index file is: $index"
  11.177 +log "gallery title is: $galleryTitle"
  11.178 +log "copyright notice is: $copyright"
  11.179 +log "picture size is: $sizePic"
  11.180 +log "thumbnail size is: $sizeThumb"
  11.181 +checkConvert
  11.182 +log ""
  11.183 +
  11.184 +
  11.185 +checkCreateDir
  11.186 +
  11.187 +insertHeader > "$targetDir/$index"
  11.188 +echo "<h1>$galleryTitle</h1>" >> "$targetDir/$index"
  11.189 +
  11.190 +for i in "$@" ; do
  11.191 +	file=`basename $i`
  11.192 +	targetFile="$targetDir/$file.htm"
  11.193 +	log "processing file: $file"
  11.194 +
  11.195 +	# generate pic page
  11.196 +	insertHeader > "$targetFile"
  11.197 +	echo "<h1>$galleryTitle</h1>" \
  11.198 +	     "<p><a href=\"$index\"><img src=\"$file\" alt=\"$file\" /></a></p>" \
  11.199 +	     "<p>$copyright</p>" >> "$targetFile"
  11.200 +	insertFooter >> "$targetFile"
  11.201 +
  11.202 +	# copy and resize pics
  11.203 +	convert "$i" -resize ${sizePic}x${sizePic} "$targetDir/$file"
  11.204 +	convert "$i" -resize ${sizeThumb}x${sizeThumb} "$targetDir/_$file"
  11.205 +
  11.206 +	# generate content for index file
  11.207 +	echo "    <a href=\"$file.htm\"><img src=\"_$file\" alt=\"$file\" /></a>" >> "$targetDir/$index"
  11.208 +done
  11.209 +
  11.210 +echo "<p>$copyright</p>" >> "$targetDir/$index"
  11.211 +insertFooter >> "$targetDir/$index"
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/genwebgallery.1	Thu Nov 22 21:13:25 2007 +0100
    12.3 @@ -0,0 +1,67 @@
    12.4 +.TH GENWEBGALLERY 1 "genwebgallery-VERSION" "2007-11-21" "genwebgallery"
    12.5 +
    12.6 +.SH NAME
    12.7 +genwebgallery
    12.8 +
    12.9 +.SH SYNOPSIS
   12.10 +.B genwebgallery FILES
   12.11 +
   12.12 +.SH DESCRIPTION
   12.13 +.B genwebgallery
   12.14 +generates a web gallery of mentioned pictures.
   12.15 +.PP
   12.16 +Only static HTML pages are generated.
   12.17 +.PP
   12.18 +The
   12.19 +.BR convert
   12.20 +tool from ImageMagick is required.
   12.21 +
   12.22 +.SH OPTIONS
   12.23 +.B genwebgallery
   12.24 +.TP
   12.25 +.B \-\-help
   12.26 +Show summary of options.
   12.27 +.TP
   12.28 +.B \-\-version
   12.29 +Show version of program
   12.30 +.TP
   12.31 +.B \-v, \-\-verbose
   12.32 +Outputs more log data
   12.33 +.TP
   12.34 +.B \-o, \-\-output
   12.35 +Specify output directory
   12.36 +.TP
   12.37 +.B \-i, \-\-index
   12.38 +Specify index file (index.htm)
   12.39 +.TP
   12.40 +.B \-t, \-\-title
   12.41 +Specify title of gallery
   12.42 +.TP
   12.43 +.B \-c, \-\-copyright
   12.44 +Specify copyright notice
   12.45 +.TP
   12.46 +.B \-ps, \-\-pic-size
   12.47 +Specify size of picture
   12.48 +.TP
   12.49 +.B \-ts, \-\-thumb-size
   12.50 +Specify size of thumbnails
   12.51 +
   12.52 +.SH EXIT CODE
   12.53 +.TP
   12.54 +.B 1
   12.55 +Any other error
   12.56 +.TP
   12.57 +.B 2
   12.58 +The required program
   12.59 +.B convert
   12.60 +could not be found. It's probably not installed.
   12.61 +Normally it is provided by the ImageMagick tool collection.
   12.62 +
   12.63 +.SH SEE ALSO
   12.64 +.BR convert (1),
   12.65 +.BR ImageMagick (1).
   12.66 +
   12.67 +.SH AUTHOR
   12.68 +genwebgallery was written by markus schnalke <meillo@marmaro.de>
   12.69 +.PP
   12.70 +Website: http://prog.marmaro.de