Beispiel #1
0
def image_width(url):
    """ Returns image width.

Usage:
    {{ url|image_width }}
"""

    width, height = get_image_size(url)
    return width
def image_height(url):
    """ Returns image height.

Usage:
    {{ url|image_width }}
"""

    width, height = get_image_size(url)
    return height
Beispiel #3
0
def image_height(url):
    """ Returns image height.

Usage:
    {{ url|image_width }}
"""

    width, height = get_image_size(url)
    return height
def image_width(url):
    """ Returns image width.

Usage:
    {{ url|image_width }}
"""

    width, height = get_image_size(url)
    return width