diff options
author | Zeus Panchenko <zeus@camb.us> | 2008-06-26 12:16:52 +0000 |
---|---|---|
committer | Zeus Panchenko <zeus@camb.us> | 2008-06-26 12:16:52 +0000 |
commit | ceede84d88e11f4815bf2a84d6df07462f13658b (patch) | |
tree | 2e4a8c19a2f73b5245e014e39fb76afa3e5b701e /renrot | |
parent | d21b0de547ea5a59369a23d0ea8753ec4c8a4f5a (diff) | |
download | renrot-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-x | renrot | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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); |