예제 #1
0
파일: thumbnail.py 프로젝트: hygkui/djpaper
def image_height(url):
    """ Returns image height.

Usage:
    {{ url|image_width }}
"""
    
    width, height = get_image_size(url)
    return height
예제 #2
0
파일: thumbnail.py 프로젝트: hygkui/djpaper
def image_width(url):
    """ Returns image width.

Usage:
    {{ url|image_width }}
"""
    
    width, height = get_image_size(url)
    return width