X-Git-Url: https://git.defcon.no/?p=plsgen;a=blobdiff_plain;f=plsgen.cfg;h=7436ef425628c253457df943f24b3e2ce62d9e1d;hp=0ba6f7884099dc7af194023fb528ca1dcaa5f7f0;hb=16f2646e3b6851d6187eccb0b2c595ccc9fff873;hpb=68c39fb44a748326e82293210c9cc48d85fe874b diff --git a/plsgen.cfg b/plsgen.cfg index 0ba6f78..7436ef4 100644 --- a/plsgen.cfg +++ b/plsgen.cfg @@ -12,11 +12,41 @@ index_tpl_file = /usr/local/share/plsgen/index.tpl css_file = ../style.css navigation_script = ../nav.js +# The default settings makes the 'UP' cursor key navigate to the +# current index-page when viewing a full display image. +# Some (many) users dislike this behaviour, so this config +# option turns the action on or off. Set to 0 to disable up-arrow. +up_arrow_navigate = 1 + # The layout of the thumbnails in the index. Each row will be wrapped # in a
rows = 4 columns = 5 +# The resizing/scaling of thumbnails and view size images can +# be run in paralell threads, doing multiple resizes at the +# same time. On SMP-enabled systems, this may give a gignificant +# speed boost compared to linear execution. The following option +# sets the number of resize operations that will run parallel. +# On simple CPU's this has no gain, so the default is no concurrency. +concurrent_threads = 1 + +# Sizes of the generated images. The following are bounding-box sizes, +# meaning that an image will be scaled to fit withing the max boundaries, +# with aspect ratio preserved. The thumb_max* sets the bounding box for all +# thumbnails, while view_max* sets the display/view size. +thumb_maxwidth = 160 +thumb_maxheight = 120 +view_maxwidth = 800 +view_maxheight = 600 + +# To disable the rescaling of the full-view image completely, set +# the following option to 1. Thumbnails will still be scaled, and +# any rotation indicated by EXIF will be done, but the view-size +# image will be identical to the original. This is useful if +# all your images are pre-scaled to your liking. +disable_rescale = 0 + # HTML code to wrap each thumbnail with. The default allows simple # styling. If you wish to span this over multiple lines, use the # end-of-line continuation mark \ @@ -29,10 +59,12 @@ thumb_post =
comment_pre =
comment_post =
- # Text-strings that can easily be replaced with more complex HTML. idx_prev_text = ← Back idx_next_text = Next → idx_ret_text = To index -footer_tag = plsgen : Perl Simple Gallery Generator 0.1 + +# The Album generator tag can be overridden. This is commented +# out in the sample, but included as an example. +#footer_tag = plsgen : Perl Simple Gallery Generator