From a78ab76040da0ae2e8ee841b61c7606dc3699d03 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 8 Feb 2003 23:50:36 +0000 Subject: [PATCH] Fixed string problem svn: r1292 --- gramps2/src/ImgManip.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gramps2/src/ImgManip.py b/gramps2/src/ImgManip.py index 6167fe4fc..be2c01048 100644 --- a/gramps2/src/ImgManip.py +++ b/gramps2/src/ImgManip.py @@ -83,14 +83,14 @@ class ImgManip: if im.mode != 'RGB': im.draft('RGB',im.size) im = im.convert("RGB") - im.save(dest,string.upper(pil)) + im.save(dest,pil.upper()) def fmt_convert(self,dest,pil): im = PIL.Image.open(self.src) if im.mode != 'RGB': im.draft('RGB',im.size) im = im.convert("RGB") - im.save(dest,string.upper(pil)) + im.save(dest,pil.upper()) def fmt_data(self,pil): g = StringIO.StringIO() @@ -98,7 +98,7 @@ class ImgManip: if im.mode != 'RGB': im.draft('RGB',im.size) im = im.convert("RGB") - im.save(g,string.upper(pil)) + im.save(g,pil.upper()) g.seek(0) buf = g.read() g.close() @@ -110,7 +110,7 @@ class ImgManip: if im.mode != 'RGB': im.draft('RGB',im.size) im = im.convert("RGB") - return im.tostring(string.upper(pil),"RGB") + return im.tostring(pil.upper(),"RGB") def jpg_thumbnail(self,dest,width,height): self.fmt_thumbnail(dest,width,height,"jpeg")