diff --git a/src/AbiWordDoc.py b/src/AbiWordDoc.py index d1c6afa2d..aa2de2751 100644 --- a/src/AbiWordDoc.py +++ b/src/AbiWordDoc.py @@ -107,19 +107,19 @@ class AbiWordDoc(TextDoc): import GdkImlib image = GdkImlib.Image(name) - scale = float(y)/float(image.rgb_height) - act_width = int(image.rgb_width * scale) - act_height = int(image.rgb_height * scale) + scale = float(image.rgb_width)/float(image.rgb_height) + act_width = x * scale + act_height = y * scale - self.photo_list.append((name,act_width,act_height)) + self.photo_list.append((name,act_width*40,act_height*40)) base = "/tmp/%s.png" % os.path.basename(name) tag = string.replace(base,'.','_') self.f.write('' % height)