Exemplo n.º 1
0
def local_avatar_image(request, size, key):
    _data = Avatar.read_image_data_by_store_key('avatar/' + size + '/' + key)
    return HttpResponse(_data, content_type="image/jpeg")
Exemplo n.º 2
0
def local_entity_image_extend(request, key1, key2, key3):
    _data = Avatar.read_image_data_by_store_key('img/' + key1 + '.' + key2 +
                                                '.' + key3)
    return HttpResponse(_data, content_type="image/jpeg")
Exemplo n.º 3
0
def local_category_image(request, key1, key2):
    _data = Avatar.read_image_data_by_store_key('category/' + key1 + '/' +
                                                key2)
    return HttpResponse(_data, content_type="image/jpeg")
Exemplo n.º 4
0
def local_entity_image(request, key, image_format):
    _data = Avatar.read_image_data_by_store_key('img/' + key + '.' +
                                                image_format)
    return HttpResponse(_data, content_type="image/jpeg")