print "$base: ";
my $p = new Image::Magick;
my $e;
- my $img = $CF{"PhotoDir"} . $orig;
+ my $img = $CF{"PhotoDir"} . "/$orig";
$e = $p->Read($img) and die "Error reading $img: $e";
my ($wo, $ho) = $p->Get('width', 'height');
my ($w, $h) = ($wo, $ho);
$h = int($h);
print " -> ${w}x${h} ";
$p->Resize(width=>$w, height=>$h);
- my $thumb = $CF{"ThumbDir"} . "$base-thumb.jpg";
+ my $thumb = $CF{"ThumbDir"} . "/$base-thumb.jpg";
$e = $p->Write($thumb) and die "Unable to write $thumb: $e";
print NOTES "$base $w $h $wo $ho\n";
print "OK\n";