django-imagekit
django-imagekit copied to clipboard
how can pass height and width to the templatetag
views.py
class imagess(ImageSpec):
processors = [SmartResize(100,100)]
format = 'JPEG'
options = {'quality': 100}
register.generator('main:imagess', imagess)
index.html
{% generateimage 'main:imagess' source=source_file %}
this generates a image of height 100 x 100
how can pass/define a custom height and width for the generated image from the HTML file....like
{% generateimage 'main:imagess' source=source_file height=1080 width=720 %}