{% load thumbnail %} {% if instance.video_file %} {# create thumbnail #} {% thumbnail instance.video_poster_image 1500x9999 upscale=False as placeholder_image %}