Answers.Body: <p>Also, depends on your setup, but if the message is going external, then the img src url would need to refer to an externally web hosted image file.</p>
  
  <p>Apologies if I'm stating the obvious.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-13T13:14:59.740Z
Answers.LastActivityDate: 2019-11-13T13:14:59.740Z
Answers.UserDisplayName: Simon Walden
Body: <p>I want to insert a contact image into a message template. This will be used to print PDF "info sheets" about contacts to include their photo.</p>
  
  <p>Simply inserting the token <code>{contact.image_URL}</code> of course only displays the image URL in the PDF. </p>
  
  <p>If I use something like  <code>&lt;img src="{contact.image_URL}" width="100" height="100"&gt;</code> I get a missing image icon. I have tested with contacts that do have contact images.</p>
  
  <p>How can I go about this?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-11-12T22:01:25.487Z
Comments.Text: What CMS are you using? If you’re on Drupal you can do this with Drupal Views and Views PDF;
Comments.UserDisplayName: KarinG - Semper IT
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-11-12T23:31:01.057Z
Comments.Text: I am on Drupal. Will I be able to do this in bulk? For example, I would select search results in CiviCRM and Print PDF in bulk.
Comments.UserDisplayName: Justin Moore
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-11-13T08:35:55.583Z
Comments.Text: You can use the html in the message. So `<img src="{contact.image_URL}" />`
Comments.UserDisplayName: Jaap Jansma - CiviCooP
Tags: <contacts><pdf><images><contact-image>
Title: Contact Image in Message Template
ThreadText: # Contact Image in Message Template
  
  (Asked by: username_0 on 2019-11-12)
  
  I want to insert a contact image into a message template. This will be used to print PDF "info sheets" about contacts to include their photo.
  
  Simply inserting the token `{contact.image_URL}` of course only displays the image URL in the PDF.
  
  If I use something like `<img src="{contact.image_URL}" width="100" height="100">` I get a missing image icon. I have tested with contacts that do have contact images.
  
  How can I go about this?
  
  **Tags:** contacts, pdf, images, contact-image
  
  > **Comments:**
  > **username_1**: What CMS are you using? If you’re on Drupal you can do this with Drupal Views and Views PDF;  
  > **username_0**: I am on Drupal. Will I be able to do this in bulk? For example, I would select search results in CiviCRM and Print PDF in bulk.  
  > **username_2**: You can use the html in the message. So `<img src="{contact.image_URL}" />`  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2019-11-13. Score: 2
  
  Also, depends on your setup, but if the message is going external, then the img src url would need to refer to an externally web hosted image file.
  
  Apologies if I'm stating the obvious.
  
  
  ---
  
  