*** empty log message ***
authorgc <gc>
Mon, 17 Mar 2008 22:34:42 +0000 (22:34 +0000)
committergc <gc>
Mon, 17 Mar 2008 22:34:42 +0000 (22:34 +0000)
bin/booh

index 663938f..d7aae44 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -1139,10 +1139,9 @@ def add_thumbnail(autotable, filename, type, thumbnail_img, caption)
         #- remove out of sync images
         dest_img_base = build_full_dest_filename(filename).sub(/\.[^\.]+$/, '')
         for sizeobj in $images_size
-            for file in [ "#{dest_img_base}-#{sizeobj['fullscreen']}.jpg", "#{dest_img_base}-#{sizeobj['thumbnails']}.jpg" ]
-                if File.exists?(file)
-                    File.delete(file)
-                end
+            #- cannot use sizeobj because panoramic images will have a larger width
+            Dir.glob("#{dest_img_base}-*.jpg") do |file|
+                File.delete(file)
             end
         end