[Checkins] SVN: z3c.image/trunk/src/z3c/image/proc/adapter.py antialias by default in resize

Bernd Dorn bernd.dorn at fhv.at
Sat Oct 21 19:02:23 EDT 2006


Log message for revision 70873:
  antialias by default in resize

Changed:
  U   z3c.image/trunk/src/z3c/image/proc/adapter.py

-=-
Modified: z3c.image/trunk/src/z3c/image/proc/adapter.py
===================================================================
--- z3c.image/trunk/src/z3c/image/proc/adapter.py	2006-10-21 17:38:41 UTC (rev 70872)
+++ z3c.image/trunk/src/z3c/image/proc/adapter.py	2006-10-21 23:02:22 UTC (rev 70873)
@@ -1,13 +1,12 @@
 from zope.interface import implements
 from zope import component
-from zope.app.file import Image
 from z3c.image.image import VImage
 from zope.app.file.interfaces import IFile
 from zope.cachedescriptors.property import readproperty
 from PIL import Image as PILImage
 from cStringIO import StringIO
 from interfaces import IProcessableImage
-from PIL import ImageFile
+from PIL import ImageFile, Image
 from types import StringType
 from zope.app.cache.ram import RAMCache
 
@@ -68,7 +67,7 @@
     def resize(self, size):
         """See IPILImageResizeUtility"""
         size = map(int,size)
-        self.cmds.append(('resize',(size,),{}))
+        self.cmds.append(('resize',(size, Image.ANTIALIAS),{}))
 
     def reset(self):
         self.cmds=[]



More information about the Checkins mailing list