Jinja image tag with different options - ashish-greycube/help GitHub Wiki In custom print format,while writing img tag,take care of following points: We can write in following ways. It will not create an error. <img src="{{ doc.image }}" style="width:10px; height:10px"> <img src="{{doc.image}}" width="50" height="50"> <img src={{doc.image}} width="30" height="30"> <img src={{ doc.image }} width="90" height="90"> <img class="qr-code" src="{{doc.image}}" width="110" height="110"> 2. When we want to check if image is exist then only it should appear in print, follow below steps: {% if(doc.image) %} <img class="qr-code" src={{doc.image}} width="300" height="300"> {% endif %} **Notes:** 1. class attribute is not necessary. 2. We can't write or '' in img tag eg. <img src={{doc.image or ''}} width="300" height="300">. It will create an error of broken image while generating pdf ⚠️ **GitHub.com Fallback** ⚠️