Logo Search packages:      
Sourcecode: zope-extfile version File versions

def zope-extfile-1.4.2::ExtImage::ExtImage::_getImageSize (   self,
  filename 
) [private]

Return width, height tuple using PIL 

Definition at line 438 of file ExtImage.py.

00438                                      :
        """ Return width, height tuple using PIL """
        try:
            from PIL import Image
            im = Image.open(self._get_fsname(filename)) 
            return im.size[0], im.size[1]
        except:
            return 0, 0
    
    def _createPreview(self, from_filename, to_filename, maxx, maxy, ratio):


Generated by  Doxygen 1.6.0   Back to index