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 images into the cache directory.
Image style has to pass into url along with other url parameter.
This functionality can be integrate in to Drupal Views, WordPress Plugin to show civicrm contact, custom images with resize size and good quality to load web page faster as compared to original images.
- PHP v5.4+
- CiviCRM 5.7
- Move the downloaded extension to your extensions folder.
- Goto civicrm/admin/extensions -- install the extension
Sysadmins and developers may clone the Git repo for this extension and install it with the command-line tool cv.
git clone https://github.com/skvare/com.skvare.imageresize.git
cv en imageresize
Admin can create custom style by visiting /civicrm/admin/options/image_styles e.g
/civicrm/contact/imagefile?photo=Logo_bfe0dba6f9eee24d0430016719ad219a.png&image_styles=thumbnail
/civicrm/file?reset=1&filename=Logo_bfe0dba6f9eee24d0430016719ad219a.png&mime-type=image/png&image_styles=thumbnail
Image Style Options