changeset 25:294c4312845a

text_x_arnica: don't waste cache with not needed webnails
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Fri, 23 May 2008 14:55:06 +0200
parents 9d46f04d556a
children 7cf17d755657
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Fri May 23 14:31:15 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Fri May 23 14:55:06 2008 +0200
@@ -555,9 +555,7 @@
         if not cache_web.exists() or not cache_thumb.exists():
             im_obj = Image.open(imagef)
             if not cache_web.exists():
-                if self.image_for_webnail == '1':
-                   os.link(imagef, webf)
-                else:
+                if not self.image_for_webnail == '1':
                     im_obj.thumbnail((int(self.webnail_width), int(self.webnail_width)), Image.ANTIALIAS)
                     im_obj.save(webf, image_type)