1.1releasedField: Image Cropper

Adds image cropping functionality to upload fields.

Clone URLhttps://github.com/klaftertief/imagecropper.git

Add as a submodulegit submodule add https://github.com/klaftertief/imagecropper.git extensions/imagecropper --recursive

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.x2.7.02.7.12.7.22.7.32.7.42.7.52.7.62.7.72.7.82.7.92.7.10
NoNo1.0.21.1NoNoNoNoNoNoNoNoNoNoNoNoNoNo. Soon?

Readme

Image Cropper

Image Cropper is a field extension for the Symphony CMS. It adds image cropping functionality to upload fields.

Installation

  1. Upload the 'imagecropper' folder in this archive to your Symphony 'extensions' folder.

  2. Enable it by selecting the "Field: Image Cropper", choose Enable from the with-selected menu, then click Apply.

  3. You can now add the "Image Cropper" field to your sections with already existing upload fields. The section has to be saved with an upload field before you can add an imagecropper field.

  4. Make sure you have Modified JIT Image Manipulation extension installed and activated.

Documentation

Frontend

The XML output is something like

<thumbnail cropped="yes" x1="123" x2="723" y1="123" y2="523" width="600" height="400" ratio="1.5" />

The jCrop mode of JIT expects a url like /image/5/crop_width/crop_height/crop_x/crop_y/resize_width/resize_height/path/to/image.jpg. resize_width and resize_height should either equal crop_width and crop_height (no resizing) or one should be 0 and the other smaller than the crop value (proportional resize).

Backend

There needs to be an upload field in the section before you can add an imagecropper field. The section has to be saved with an upload field before you can add an imagecropper field.

You can add a filter to your datasource. The syntax is like width: >200, height: <=300, cropped: yes and ratio: >1. There is an optional thumbnail preview in entry overview tables.

Credits

Version history

Requires Symphony 2.3

  • Symphony 2.3 compatibility
  • The used JIT mode changed from 4 to 5 because of the latest JIT changes
  • Updated jCrop version
  • Updated jQuery UI version
  • Support for Image Upload Field

Requires Symphony 2.2