3 bpgallery is a small static gallery generator, it generates an index file and
4 thumbnails of your images. The index file is generated in the image folder,
5 icons in a subfolder called icons.
9 The ImageMagick tools (convert and identify)
17 Copy the file bpgallery.sh to a directory in your PATH.
21 bpgallery.sh /path/to/image/files
23 Also, the following files, if placed in the images directory, will be used to
24 generate part of the index page:
26 a simple text file containing paragraphs to go at the beginnings of
29 filename<tab>caption style file, it'll add a caption to the images
32 The following environment variables can also be used:
34 the title of the gallery
37 the width to make the icons
40 set the width of images in the medium size pages
43 set the theme to use (described below)
46 set an extra location to look for themes
49 sets the script output to be wrapped in a <pre> block
51 GENERATEPAGESFORMEDIUMSIZE
52 generate medium sized images and pages
54 GENERATEPAGESFORFULLSIZE
55 decide wether to generate pages for the full size images or not
58 name of the index page (e.g. index.html)
61 TITLE="My Funky Gallery" bpgallery.sh /path/to/image/files
65 Theme support is very rudimentary, basically you create functions for each of
66 the parts of the template, and put them in a file named the same as the theme.
67 The functions that you need to declare are as follows:
68 bpgallery_ThemeName_head()
70 This sets up the header for the page, generally
71 everything until the first picture. So, the title bar
72 and any menus you would like to use
74 $TITLE - the title for the index page
75 bpgallery_ThemeName_tail()
77 Closes the page, is the last thing to be printed.
80 bpgallery_ThemeName_description()
82 if there's a description set up (i.e. a description.txt
83 file) then this is what it'll be wrapped in. It comes
86 $DESCRIPTION - the content of description.txt
87 bpgallery_ThemeName_stylesheet()
89 It generates the stylesheet for the page.
91 $WIDTH - the width of the images
92 $MAXHEIGHT - the maximum height of the image
93 bpgallery_ThemeName_thumbsline()
95 Whatever is in here is generated per thumbnail.
97 $link - the page/image to link to
98 $filename - the name of the file
99 $caption - the caption as got from captions.txt
100 bpgallery_ThemeName_page()
102 It generates the pages for fullsize image pages
104 $filename - the name of the image
105 $previouspage - the URL for the previous page
106 $currentpage - the url for the current page
107 $nextpage - the url for the next page
108 $caption - the image caption
110 If any of the functions are not defined in a theme then the default theme
111 function will be used instead. The default theme is clean and simplistic, this
117 e-mail: <iDunno@sommitrealweird.co.uk>
118 www: http://www.sommitrealweird.co.uk/