summaryrefslogtreecommitdiff
path: root/include/gen-xhtml-thumbnails
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-06-27 19:41:56 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-06-27 19:41:56 +0200
commitaa2c3355f44be5d52f704daee0f10ef8dfd322ab (patch)
treeee756aa899edc2ee895cc253e6e4157e1191da66 /include/gen-xhtml-thumbnails
parentfb40336949e32d436b3bf23d9098722b6ed79c8c (diff)
gen-xhtml-thumbnails: Added documentation
Diffstat (limited to 'include/gen-xhtml-thumbnails')
-rwxr-xr-xinclude/gen-xhtml-thumbnails24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/gen-xhtml-thumbnails b/include/gen-xhtml-thumbnails
index 1ab433c..ee8087a 100755
--- a/include/gen-xhtml-thumbnails
+++ b/include/gen-xhtml-thumbnails
@@ -1,4 +1,6 @@
#!/usr/bin/perl
+# Copyright © 2009 by Daniel Friesel <derf@derf.homelinux.org>
+# License: WTFPL <http://sam.zoy.org/wtfpl>
use strict;
use warnings;
use Image::Imlib2;
@@ -81,3 +83,25 @@ ficken
close($index);
chmod(0644, $indexfile);
+
+__END__
+
+=head1 NAME
+
+gen-xhtml-thumbnails - Generate Thumbnails + Index for a set of images
+
+=head1 SYNOPSIS
+
+B<gen-xhtml-thumbnails> [I<directory>]
+
+=head1 DESCRIPTION
+
+gen-xhtml-thumbnails will create an F<index.xhtml> with a list (thumbnails) of
+all images found if I<directory>; the thumbnails will link to the images.
+
+The F<index.xhtml> file will always be created in I<directory>.
+The thumbnails will be saved in F<.thumbs>, also in I<directory>.
+If I<directory> is not specified, the current directory is used.
+
+Note that only the images in the directory itself will be processed, recursion
+is not supported.