Just ensures that a cached thumbnail of the requested size exists and
redirects to it. Useful for references from other pages.
my ($dir, $base, $ext) = split_path $path;
my $real = join_paths $IMGROOT, $path;
my $img = TrivGal::Image->new($path);
+
+ if (defined $scale) { $m->redirect($img->scale($scale)); }
+
my $url = join_paths $IMGURL, $path;
my $realdir = join_paths $IMGROOT, $dir;
my $urldir = join_paths $SCRIPTURL, $dir;
%
<%args>
$path
+ $scale => undef
</%args>
</%def>
%