def getimage(name):
 try:
  sizes = imgfile.getsizes(name)
 except imgfile.error:
  name = get_qualified_path(name)
  sizes = imgfile.getsizes(name)
 if verbose:
  print ('imgfile opening test image: %s, sizes: %s' % (name, str(sizes)))
 image = imgfile.read(name)
 return (image, sizes[0], sizes[1])

def getimage ( name ) : try : sizes = imgfile . getsizes ( name ) except imgfile . error : name = get_qualified_path ( name ) sizes = imgfile . getsizes ( name ) if verbose : print ( 'imgfile opening test image: %s, sizes: %s' % ( name , str ( sizes ) ) ) image = imgfile . read ( name ) return ( image , sizes [ 0 ] , sizes [ 1 ] )
return a tuple consisting of image width and height .