$p->Resize(width=>$w, height=>$h);
}
- my $photo = File::Spec->catfile($photo_dir, $gal->photo_meta($m, $id));
+ my $photo = $gal->photo_name($m, $id);
my $tmp = "$photo.new";
$e = $p->Write($tmp) and die "Unable to write $tmp: $e";
rename $tmp, $photo or die "Cannot rename $tmp to $photo: $!\n";