Skip to main content
Share Your Experience: Take the 2024 Developer Survey
5 votes
Accepted

Thumbnail of contact image?

Try the Image Resize Extension: This extension adds image resize capability to CiviCRM for Contact and Custom Field images. The extension handles resizing of all types of images and will put the ...
Coleman's user avatar
  • 18.7k
4 votes

How can I sync the Drupal User Profile image and the CiviCRM contact image?

I am not sure how to sync drupal profile image with CiviCRM contact image through UI. But you can add module and invoke hook to update the contact image. Here is the snippet how to add image url to ...
Pradeep Nayak's user avatar
4 votes

Can't print participant's image in name badge

Image URLs were the subject of a security release in CiviCRM 5.10.3. My guess is that you've uncovered a bug related to this, especially if they printed in the past. My recommendation would be to ...
Jon G - Megaphone Tech's user avatar
3 votes
Accepted

Civi adds whitespace into contact images

After much digging, I found the reason why contact images were not appearing. It was due to a module that had a PHP file with two new lines before the opening PHP tag <?php. To figure this out, I ...
Jade's user avatar
  • 684
3 votes
Accepted

Contact Image Size

The contact summary screen should automatically limit the image size to a maximum of 100px. If this is not working correctly you could add this to your site's css file: .crm-contact_image img { ...
Coleman's user avatar
  • 18.7k
3 votes
Accepted

Can contact images be uploaded other than by editing a contact record?

Uploads via Webform are indeed broken in 4.7, but have been fixed with 5.0. Webform CiviCRM inserts the image_URL value in the database as the path to the webform upload, e.g. /sites/default/files/...
choster's user avatar
  • 1,900
2 votes

Contact image not displaying

I am encountering the same problem, but only with images uploaded via Webform; if I edit the profile, delete the image reference, and re-upload the file, it displays as expected. The reason is that ...
choster's user avatar
  • 1,900
2 votes

Image from Civicrm contact not shown

So I've found this issue is due to a rogue module or theme in Drupal that has whitespace before or after the PHP opening and closing tags which is being injected into contact images and can also ...
Jade's user avatar
  • 684
2 votes

Contact Image in Message Template

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.
Simon Walden's user avatar
1 vote

Handling HEIC/HEIF photos

This is hard-coded at https://github.com/civicrm/civicrm-core/blob/c8a7531ec9785161f4cdc6b1d51e9ff01989db47/CRM/Contact/BAO/Contact.php#L1180 But I'm sure core would be open to updating that list. You ...
Demerit's user avatar
  • 23.1k
1 vote
Accepted

What's happened to contact images in 5.8.2?

I'm pretty sure that that this problem wasn't caused by the update to 5.8.2 but instead the installation of the Shoredtich extension as part of installing Mosaico. This issue clarifies: https://github....
Graham's user avatar
  • 4,055
1 vote
Accepted

How can I sync the Drupal User Profile image and the CiviCRM contact image?

I think I've figured this out and it seems to work reliably in D8.5.4/CV4.7.30. The basic approach is to: Lookup the Civi contact based on the Drupal user id Make a copy of the uploaded account pic (...
theta-fish's user avatar
1 vote

Contact image not displaying

This is still a problem as of CiviCRM v4.7.30. As it currently stands based on the observed behavior, CiviCRM cannot handle relative-URLs for contact images. The "image_URL" property of the CiviCRM ...
theta-fish's user avatar
1 vote

Limit file size for "image url" field

You should be able to implement a hook via PHP to validate the profile when it is submitted: https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_processProfile/. Someone else may want to chime ...
Sleewok's user avatar
  • 1,146
1 vote

Why can't I easily manage contact images in Drupal Views any more?

Did you try the Output the image URL only option as shown below?
Kainuk - CiviCooP's user avatar
1 vote
Accepted

How to retrieve contact image URL in CiviCRM with the API

The image_URL returned by the API is the image that is attached to the CiviCRM contact, not to the Drupal user. You can upload an image of a contact by selecting edit and upload a file with "Browse/...
Kainuk - CiviCooP's user avatar
1 vote

Contact Image Size

This forum thread from 2015 on using CiviCRM, Views and Imagecache is worth a look. There are some performance gains in not serving contact images directly from CiviCRM which might be worthwhile, ...
Chris Burgess's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible