Skip to content

Resize Images uploaded to CiviCRM in View Mode with different dimensions.

Notifications You must be signed in to change notification settings

Skvare/com.skvare.imageresize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

com.skvare.imageresize

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.

Requirements

  • PHP v5.4+
  • CiviCRM 5.7

Installation (Web UI)

  • Move the downloaded extension to your extensions folder.
  • Goto civicrm/admin/extensions -- install the extension

Installation (CLI, Git)

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

Usage

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

Screenshot

About

Resize Images uploaded to CiviCRM in View Mode with different dimensions.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages