4

Is there any way to resize the contact image, restrict the size/dimensions of the contact image upon upload, etc.

Using Drupal 7 and CiviCRM 4.6.x

Thank you.

Currently we have some contact records with a huge uploaded image taking over 1/4 of the screen.

  • 1
    This old forum thread on using CiviCRM, Views and Imagecache is worth a look. The performance advantages of not serving contact images directly from CiviCRM make it extremely appealing, especially if you use CiviCRM images in a frequently viewed place (eg contributor headshots on the front page, like civicrm.org used to). You could even intercept the contact display image request at webserver level and redirect to a URL serviced by such a method. – Chris Burgess Dec 14 '16 at 21:50
  • @ChrisBurgess that comment would make a fine answer. – Coleman Dec 15 '16 at 2:48
3

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 {
   max-width: 100px;
}
1

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, especially if you use CiviCRM images in a frequently viewed place (eg contributor headshots on the front page, like civicrm.org used to).

I guess you could even intercept the contact display image request at webserver level and redirect to a URL serviced by such a method. (But Coleman's CSS is way easier, esp if it's the default for CiviCRM!)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.