my $id = $f->{id};
my $rotate = $f->{orientation};
my $xfrm = $f->{xfrm};
- push @{$meta->{sequence}}, $id;
print "$id: ";
my $p = new Image::Magick;
'xf' => $xfrm,
'w' => $w,
'h' => $h,
+ 'title' => $f->{title},
};
+ $meta->{photo}->{$id} = $m;
+ push @{$meta->{sequence}}, $id;
my $om = $old_meta->{photo}->{$id};
if ($om &&
$om->{h} eq $m->{h}) {
# FIXME: Remove old images?
print "... uptodate\n";
- $meta->{photo}->{$id} = $om;
next;
}
rename $tmp, $photo or die "Cannot rename $tmp to $photo: $!\n";
print "... OK\n";
- $meta->{photo}->{$id} = $m;
}
print "Writing meta-data\n";