Image in custom print format

i have to use a company logo in the custom print format but logo is in image type so i have to convert it into a url but i dont know how to convert the image into a url to use in the custom print format

Hi @ragul,

you have to upload the image to your ERPNext instance, make sure it is public, then open File List, navigate to the logo file and note the URL. Use this in your custom print format as <img src="url">


If you mean an image that was attached, the image field is actually the url you are looking for. In this case, use

<img src="{{ doc.image }}">

in the print format…

Hope this helps.

1 Like