예제 #1
0
 def exists(self, name):
     """Check if an File/Image exists."""
     try:
         huimages.get_size(name)
         return True
     except:
         return False
예제 #2
0
 def size(self, name):
     """Return the dimensions (x, y) of an image."""
     return huimages.get_size(name)