Exemplo n.º 1
0
 def __init__(self, image, **kwargs):
     self.image = image
     self.cache = CacheManager(image, **kwargs)
Exemplo n.º 2
0
def get_image(album, filename, size="full"):
    image = Image(album, filename, current_app.config)
    cache = CacheManager(image, current_app.config)
    return send_from_directory(*cache.get(size))
Exemplo n.º 3
0
 def __init__(self, image):
     self.image = image
     self.cache = CacheManager(image)