bug fix for image size in htmland modifyreport
bzr revid: dsh@tinyerp.com-20090601072149-xpjplc49k7jrnaz3
This commit is contained in:
@@ -58,8 +58,10 @@ class html2html(object):
|
||||
output = cStringIO.StringIO(base64.decodestring(src))
|
||||
img = ImageReader(output)
|
||||
(width,height) = img.getSize()
|
||||
new_child.set('width',str(width))
|
||||
new_child.set('height',str(height))
|
||||
if not new_child.get('width'):
|
||||
new_child.set('width',str(width))
|
||||
if not new_child.get('height') :
|
||||
new_child.set('height',str(height))
|
||||
else :
|
||||
new_child.getparent().remove(new_child)
|
||||
new_child.text = utils._process_text(self, child.text)
|
||||
|
||||
Reference in New Issue
Block a user