3 votes

Zoom Area Cropper

A custom property editor for Umbraco that allows the editor to select multiple cropping areas with different zooms for an image.

After installing the package, create a new DataType and select "Zoom Area Cropper" from the property editor dropdown. Set the width and height you want your crops to output to in the DataType, and then add it to a DocType of your choice.

Once installed, in the editor for a page with the cropper you can select an image, and then add one or more crop points for it. Each crop point has its focus determined by the focus handle, has a name you can change, and then has a zoom level that you can adjust independent of other crops after selecting "preview crop". (See gif above for example of what this looks like).

Here's a simple example of making use of Zoom Area Cropper in your view: https://gist.github.com/naepalm/ef62771d72af15b9f337307eec01b4d1

You can view the source code at: https://github.com/Offroadcode/Zoom-Area-Cropper

Note: When using with super large images, they do work with the cropper but it can take sometimes several seconds in those instances for the preview crops to update as ImageProcessor works through the bigger images. With more typical media sizes it's much more speedy on previews.

Screenshots

Package owner

Offroadcode

Offroadcode

Offroadcode has 396 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions: 7.7.x, 7.6.x, 7.5.x

Package Information

  • Package owner: Offroadcode
  • Contributors: Janae Cram , Kyle Weems
  • Created: 26/05/2017
  • Current version v1.0.4
  • .NET version 4.5
  • License MIT
  • Downloads on Our: 1.4K

External resources