]> git.defcon.no Git - plsgen/blob - plsgen.cfg
Four new features, two bugfixes. Version 0.3 code
[plsgen] / plsgen.cfg
1 # This configuration file contains the default values
2 # used if no configuration file is present.
3 #
4 # Adjust as appropriate. Make special note of the
5 # location of the template files, and the CSS/script.
6
7 # Template file locations, absolute paths on the local filesystem
8 full_tpl_file = /usr/local/share/plsgen/full.tpl
9 index_tpl_file = /usr/local/share/plsgen/index.tpl
10
11 # CSS and script files are given paths as presented by your web-server.
12 css_file = ../style.css
13 navigation_script = ../nav.js
14
15 # The default settings makes the 'UP' cursor key navigate to the
16 # current index-page when viewing a full display image.
17 # Some (many) users dislike this behaviour, so this config
18 # option turns the action on or off. Set to 0 to disable up-arrow.
19 up_arrow_navigate = 1
20
21 # The layout of the thumbnails in the index. Each row will be wrapped
22 # in a <div class='thumnails'>
23 rows = 4
24 columns = 5
25
26 # The resizing/scaling of thumbnails and view size images can
27 # be run in paralell threads, doing multiple resizes at the
28 # same time. On SMP-enabled systems, this may give a gignificant
29 # speed boost compared to linear execution. The following option
30 # sets the number of resize operations that will run parallel.
31 # On simple CPU's this has no gain, so the default is no concurrency.
32 concurrent_threads = 1
33
34 # Sizes of the generated images. The following are bounding-box sizes,
35 # meaning that an image will be scaled to fit withing the max boundaries,
36 # with aspect ratio preserved. The thumb_max* sets the bounding box for all
37 # thumbnails, while view_max* sets the display/view size.
38 thumb_maxwidth = 160
39 thumb_maxheight = 120
40 view_maxwidth = 800
41 view_maxheight = 600
42
43 # To disable the rescaling of the full-view image completely, set
44 # the following option to 1. Thumbnails will still be scaled, and
45 # any rotation indicated by EXIF will be done, but the view-size
46 # image will be identical to the original. This is useful if
47 # all your images are pre-scaled to your liking.
48 disable_rescale = 0
49
50 # HTML code to wrap each thumbnail with. The default allows simple
51 # styling. If you wish to span this over multiple lines, use the
52 # end-of-line continuation mark \
53 thumb_pre = <div class='thumb'>
54 thumb_post = </div>
55
56 # HTML code to wrap comments with, for both index and image
57 # display. The default allows simple styling. If you wish to span
58 # this over multiple lines, use the end-of-line continuation mark \
59 comment_pre = <div id='comment'>
60 comment_post = </div>
61
62 # Text-strings that can easily be replaced with more complex HTML.
63 idx_prev_text = &larr; Back
64 idx_next_text = Next &rarr;
65 idx_ret_text = To index
66
67 # The Album generator tag can be overridden. This is commented
68 # out in the sample, but included as an example.
69 #footer_tag = plsgen : Perl Simple Gallery Generator
70