From 1ee58da12be556456cff788f3d39c6d17c6cdda9 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 12 Jun 2001 17:01:45 +0000 Subject: [PATCH] Image size now specified in centimeters instead of pixels svn: r112 --- gramps/src/AbiWordDoc.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gramps/src/AbiWordDoc.py b/gramps/src/AbiWordDoc.py index d1c6afa2d..aa2de2751 100644 --- a/gramps/src/AbiWordDoc.py +++ b/gramps/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)