aboutsummaryrefslogtreecommitdiff
path: root/renrot
diff options
context:
space:
mode:
authorZeus Panchenko <zeus@camb.us>2008-06-26 12:16:52 +0000
committerZeus Panchenko <zeus@camb.us>2008-06-26 12:16:52 +0000
commitceede84d88e11f4815bf2a84d6df07462f13658b (patch)
tree2e4a8c19a2f73b5245e014e39fb76afa3e5b701e /renrot
parentd21b0de547ea5a59369a23d0ea8753ec4c8a4f5a (diff)
downloadrenrot-ceede84d88e11f4815bf2a84d6df07462f13658b.tar.gz
renrot-ceede84d88e11f4815bf2a84d6df07462f13658b.tar.bz2
thumbnails related logic in cs generator amended
git-svn-id: file:///svnroot/renrot/trunk@539 fe2816f4-e837-0410-b10a-f608c9d244a1
Diffstat (limited to 'renrot')
-rwxr-xr-xrenrot10
1 files changed, 7 insertions, 3 deletions
diff --git a/renrot b/renrot
index c408355..42b6bd9 100755
--- a/renrot
+++ b/renrot
@@ -1273,14 +1273,18 @@ sub contactSheetGenerator {
} else {
$filefull = $ThumbnailOriginal;
}
- } elsif ($contactSheetThm == 0 and not defined ${$$info{ThumbnailImage}}) {
- procmsg ("WARNING: $filefull has no ThumbnailImage tag. Stub thumbnail image'll be used.\n");
+ } elsif ($contactSheetThm == 0 and not defined ${$$info{ThumbnailImage}} and $gen_thm == 0) {
+ warnmsg ("$filefull has no ThumbnailImage tag. Stub thumbnail image'll be used.\n");
if (not -f $workdir . "thmbstub.jpg") {
thm_gen_stub ($workdir, "thmbstub.jpg");
- procmsg ("Stub thumbnail image've been created.\n");
}
copy ($workdir . "thmbstub.jpg", $workdir . $file);
$filefull = $workdir . $file;
+ } elsif ($contactSheetThm == 0 and not defined ${$$info{ThumbnailImage}} and $gen_thm != 0) {
+ warnmsg ("$filefull has no ThumbnailImage tag. Thumbnail image'll be generated.\n");
+
+ move (thm_gen_orig ($file, 0), $workdir . $file);
+ $filefull = $workdir . $file;
}
$infothm = $exifToolObj->ImageInfo($filefull);

Return to:

Send suggestions and report system problems to the System administrator.