Closed hungphamvn closed 6 years ago
Look at {% generateimage %}
documentation. When {% thumbnail %}
is used as assignment tag the result is the same as using {% generateimage %}
as assignment tag.
http://django-imagekit.readthedocs.io/en/latest/#generateimage
If you directly want to work with the cache image from your model (with ImageSpecField
) then look here: http://django-imagekit.readthedocs.io/en/latest/#using-specs-in-templates
Firstly, thank you for your awesome project.. And i just have a little bit doubt about this, I created a thumbnail image with processor below:
processors = [ResizeToFit(width=290)]
and i don;t know how to display it at template. i tried to use{% thumbnail '290x' image.image as th %}
but it return cache image.. Could anyone help me? thank a lot.