Browse Source

debug

master
Pascal Gloor 5 years ago
parent
commit
57741ce288
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      cgi/autodoc.fcgi

+ 4
- 2
cgi/autodoc.fcgi View File

@@ -274,11 +274,13 @@ sub gen_error_img {
my $dst = sprintf("%s/error_img-%s%s.jpeg", $conf->{path}{cache}, $wh, $size);

if ( ! -r $dst ) {
system(sprintf("convert %s -resize %s%s %s",
my $cmd = sprintf("convert %s -resize %s%s %s",
$src,
$wh eq 'h' ? 'x' : '',
$size,
$dst));
$dst);
print STDERR "IMG: $cmd\n";
system($cmd);
}

}

Loading…
Cancel
Save