summaryrefslogtreecommitdiff
path: root/lib/App/Dthumb.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App/Dthumb.pm')
-rwxr-xr-xlib/App/Dthumb.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/App/Dthumb.pm b/lib/App/Dthumb.pm
index 7f9bb23..336e797 100755
--- a/lib/App/Dthumb.pm
+++ b/lib/App/Dthumb.pm
@@ -306,7 +306,11 @@ sub create_thumbnail_image {
my $thumbdir = $self->{config}->{dir_thumbs};
my $thumb_dim = $self->{config}->{size};
- if (-e "${thumbdir}/${file}" and not $self->{config}->{recreate}) {
+ if (
+ -e "${thumbdir}/${file}"
+ and not $self->{config}->{recreate}
+ and (stat($file))[9] <= (stat("${thumbdir}/${file}"))[9]
+ ) {
return;
}