コード例 #1
0
ファイル: thumbnail.py プロジェクト: hygkui/webblog
def image_height(url):
    """ Returns image height.

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

    width, height = get_image_size(url)
    return height
コード例 #2
0
ファイル: thumbnail.py プロジェクト: hygkui/webblog
def image_width(url):
    """ Returns image width.

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

    width, height = get_image_size(url)
    return width