summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-02-28 18:13:19 +0100
committerDaniel Friesel <derf@finalrewind.org>2011-02-28 18:13:19 +0100
commita0170383fc831c327c481844a2ce86f240b403da (patch)
tree58b21cbee01473edfc26e3ee2cc2df001b367e22 /bin
parent011ed48f326216672f962e128f96cb83cef28460 (diff)
parent149e463ca5430c9327cbf4e516104bdc2dcea3ae (diff)
Merge branch 'master' of /home/derf/var/git_root/dthumb
Conflicts: lib/App/Dthumb.pm
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dthumb33
1 files changed, 20 insertions, 13 deletions
diff --git a/bin/dthumb b/bin/dthumb
index 2bda263..aa4969b 100755
--- a/bin/dthumb
+++ b/bin/dthumb
@@ -13,11 +13,13 @@ my $opt = {};
GetOptions(
$opt,
qw{
+ help|h
size|d=i
spacing|s=f
+ no-lightbox|L
no-names|n
quality|q=i
- archive|x
+ version|v
},
) or die("Please see perldoc -F $0\n");
@@ -41,21 +43,19 @@ dthumb will create an F<index.xhtml> with a list (thumbnails) of
all images found in the current directory; the thumbnails will link to the
images.
-The F<index.xhtml> file will always be created in the current directory, the
-thumbnails will be saved in F<.thumbs> below it.
-
Note that recursion is not yet supported.
+During operation, B<dthumb> will show its progress on STDERR.
+
=head1 OPTIONS
=over
-=item B<-x>, B<--archive>
+=item B<-L>, B<--no-lightbox>
-Create (and link) an "image.tar" archive containing all full-size image files.
-All but the last directories in the files' path are stripped, besides that the
-directory structure is preserved. So, if you run dthumb -x in
-.../mydir/, the archive will contain mydir/1.jpg, mydir/2.jpg etc.
+Disable Javascript lightbox. Note that in the current implementations, this
+simple skips installation of the data files. The lightbox link in the HTML
+will still be written, leading to 404s on the server. This will be fixed.
=item B<-n>, B<--no-names>
@@ -88,25 +88,32 @@ Zero upon success, non-zero otherwise.
None.
+=head1 FILES
+
+B<dthumb> always works in the current working directory. It will create the
+file F<index.xhtml>, in which the HTML code for the thumbnail list is saved.
+
+It also creates two directories: F<.thumbs> for the thumbnail images, and
+F<.dthumb>, which contains various data (so far icons and javascript code).
+
=head1 DEPENDENCIES
=over
=item * autodie (Included in core as of perl 5.10.1)
-=item * Archive::Tar (subject to change)
+=item * Data::Section
=item * Image::Imlib2
+=item * Time::Progress
+
=back
=head1 BUGS AND LIMITATIONS
Thumbnails of changed images are not yet recreated.
-When used with B<-x>, the completer tar archive is kept in memory, leading to
-enormous memory usage and possibly out-of-memory errors.
-
=head1 AUTHOR
Copyright (C) 2009, 2010 by Daniel Friesel E<lt>derf@chaosdorf.deE<gt>.