projects
/
booh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7266a9c
)
*** empty log message ***
author
gc
<gc>
Mon, 17 Mar 2008 22:34:42 +0000
(22:34 +0000)
committer
gc
<gc>
Mon, 17 Mar 2008 22:34:42 +0000
(22:34 +0000)
bin/booh
patch
|
blob
|
history
diff --git
a/bin/booh
b/bin/booh
index 663938fda1b94e921c1fab1a13135eb0171907ed..d7aae442609e6951748e20de2da168165a595a5b 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
#- 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
end
end