changeset 137:81f9d359f173

text_x_arnica: bug fix use type int for size of thumbnail and webnail
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Mon, 30 Jun 2008 00:07:52 +0200
parents b74bd78a9ce9
children 66edb441a93b
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Sun Jun 29 16:08:29 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Mon Jun 30 00:07:52 2008 +0200
@@ -542,11 +542,11 @@
            # XXX later on a unit conversion method for using other units than 'px' is needed
             if not cache_web.exists():
                 if not self.image_for_webnail:
-                    im_obj.thumbnail((self.webnail_width, int(self.webnail_width.strip('px'))), Image.ANTIALIAS)
+                    im_obj.thumbnail((int(self.webnail_width.strip('px')), int(self.webnail_width.strip('px'))), Image.ANTIALIAS)
                     im_obj.save(webf, image_type)
 
             if not cache_thumb.exists():
-                im_obj.thumbnail((self.thumbnail_width, int(self.thumbnail_width.strip('px'))), Image.ANTIALIAS)
+                im_obj.thumbnail((int(self.thumbnail_width.strip('px')), int(self.thumbnail_width.strip('px'))), Image.ANTIALIAS)
                 im_obj.save(thumbf, image_type)
 
     def render(self, formatter):