Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-7574

Automatically resize contact image thumbnails

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Won't Fix
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.4.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      I noticed that when uploading a user photo, CiviCRM is returning the full-size image and relying on the browser to resize it to a thumbnail.

      The first patch allows the use of the Drupal image_resize() function if it is available.

      The second patch corrects CRM_Contact_BAO_Contact::getThumbSize() so that the returned width is an integer rather than a float.

        Attachments

        1. CRM_Contact_BAO_Contact.php.patch
          0.5 kB
          Bob Vincent
        2. CRM_Contact_Page_View.php.patch
          1 kB
          Bob Vincent
        3. CRM_Core_BAO_UFGroup.php.patch
          2 kB
          Bob Vincent
        4. templates_CRM_Contact_Page_ContactImage.tpl.patch
          0.7 kB
          Bob Vincent

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              pillarsdotnet Bob Vincent
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 20 minutes
                20m
                Remaining:
                Remaining Estimate - 20 minutes
                20m
                Logged:
                Time Spent - Not Specified
                Not Specified