~mdw
/
tgal
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6abe8e5
)
mason/dhandler: Build the image a little earlier.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 9 Jun 2023 21:10:55 +0000
(22:10 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 9 Jun 2023 21:13:09 +0000
(22:13 +0100)
Just in case we have another use for it in mind. Maybe.
mason/dhandler
patch
|
blob
|
blame
|
history
diff --git
a/mason/dhandler
b/mason/dhandler
index
ca5dad2
..
aca88bb
100755
(executable)
--- a/
mason/dhandler
+++ b/
mason/dhandler
@@
-145,11
+145,12
@@
Failed to find ‘<% $path |h %>’.
<%perl>
my ($dir, $base, $ext) = split_path $path;
my $real = join_paths $IMGROOT, $path;
+ my $img = TrivGal::Image->new($path);
my $url = join_paths $IMGURL, $path;
my $realdir = join_paths $IMGROOT, $dir;
my $urldir = join_paths $SCRIPTURL, $dir;
my ($dd, $ff, $ii) = listdir $realdir;
- my $vw =
TrivGal::Image->new($path)
->scale("view");
+ my $vw =
$img
->scale("view");
my $fi = undef;
FILE: for (my $i = 0; $i < @$ff; $i++)