Index: llgal.in
===================================================================
--- llgal.in (revision 675)
+++ llgal.in (working copy)
@@ -1704,7 +1704,14 @@
if ($type == $TYPE_IMAGE) {
# image slide
- if (defined $entry->{scaled_filename}) {
+ if (defined $entry->{scaled_filename} && $opts->{without_full}) {
+ # scaled image WITHOUT link to the real image
+ $THIS_SLIDE = "{scaled_url}\" " ;
+ $THIS_SLIDE .= "style=\"width: $entry->{scaled_xdim}px; height: $entry->{scaled_ydim}px;\" "
+ unless $opts->{slide_dimensions_from_css} ;
+ $THIS_SLIDE .= "alt=\"$opts->{alt_scaled_text}$entry->{title} $entry->{scaled_dimstring}\" />" ;
+
+ } elsif (defined $entry->{scaled_filename}) {
# scaled image with link to the real image
$THIS_SLIDE = "{url}\" "
."title=\"$opts->{over_scaled_text}$entry->{title} $entry->{dimstring}\">"
Index: llgalrc.5
===================================================================
--- llgalrc.5 (revision 675)
+++ llgalrc.5 (working copy)
@@ -318,6 +318,13 @@
Default is
.BR 0 " (" unlimited ).
.RE
+.I without_full =<0/1>
+.RS
+Skip link to full size image from scaled down images on slide.
+Default is
+.BR 0
+(with links to full size images).
+.RE
.I text_slide_width =
.RS
Default width of text slides.
Index: lib/Llgal/Config.pm
===================================================================
--- lib/Llgal/Config.pm (revision 675)
+++ lib/Llgal/Config.pm (working copy)
@@ -116,6 +116,7 @@
link_between_last_and_first => $OPT_IS_NUMERIC,
make_slide_title_from_caption => $OPT_IS_NUMERIC,
show_all_exif_tags => $OPT_IS_NUMERIC,
+ without_full => $OPT_IS_NUMERIC,
# Captions
captions_removal_line => $OPT_IS_NONEMPTY_STRING,
make_caption_from_image_comment => $OPT_IS_STRING,
@@ -512,6 +513,7 @@
--title title of the index of the gallery (Index of pictures)
--sx limit image width in slides to pixels
--sy limit image height in slides to pixels
+ --without-full don't place link to full size image from scaled down slides
--tx limit thumbnail width to pixels (113)
--ty limit thumbnail height to pixels (75)
-u write captions under thumbnails on index page
@@ -781,6 +783,7 @@
'title=s' => \$opts->{index_title},
'sx=i' => \$opts->{slide_width_max},
'sy=i' => \$opts->{slide_height_max},
+ 'without_full=i' => \$opts->{without_full},
'tx=i' => \$opts->{thumbnail_width_max},
'ty=i' => \$opts->{thumbnail_height_max},
'u' => \$opts->{show_caption_under_thumbnails},
Index: llgal.1
===================================================================
--- llgal.1 (revision 675)
+++ llgal.1 (working copy)
@@ -675,6 +675,13 @@
to force regeneration of scaled images if you want to change the value of
.BR --sy .
+.TP
+.BI --without-full
+Don't place a link to the full size source image when creating slides with
+scaled down images. This maybe useful if you want to publish a gallery with
+your pictures but do not want the world to be able to obtain the full size
+originals. The corresponding configuration file option is
+.IR without_full .
.TP
.BI --templates " "