def fillmurray(width, height): """ Creates a random image of Bill Murray at the provided width and height. Usage format: {% fillmurray [width] [height] %} Example usage: Color image at 250 wide and 400 high {% fillmurray 250 400 %} """ url = get_fillmurray_url(width, height) return format_html('<img src="{}"/>', url)
def render(self, context): return get_fillmurray_url( self.width, self.height, color=self.color )