11 votes

Terabyte Image Cropper

Note: This project is no-longer under active development. Consider using the now built in cropper.

A simple Image cropper with flexible validation.

Features

  • Upload your JPG, if it's too big jCrop will appear so you can crop your image
  • Flexible Validation for dimesion, filesize, filename
  • Shrinks the raw image to fit your browser to make cropping very large images easy.
  • The uploaded image is cropped asynchronously in the edit page.
  • The uploaded 'raw' file is overwritten with the cropped file when you click 'crop'.

Usage
Regex validation is performed against a string of this format:
IsValidSize:true|Width:200|Height:100|Length:400|Extension:.jpg|Name:blah.jpg
Therefore to validate the image is the correct size, use this regex:
.*IsValidSize\:true.*

Configuration (optional Web.Config entry)
<add key="ImageCropperIgnoreMissingFiles" value="false"/>

Known Issues & Limitations

  • Does not work with "Media"
  • Only works with .jpg files.
  • cropper fails to initialise if not on the 'loaded tab' see forum post[1] for details:
  • Only works with files in jpg format see forum post[1] for details
  • Has issues with some characters in the filenames, see forum post[2] for discussion.
  • [1] http://our.umbraco.org/projects/backoffice-extensions/terabyte-image-cropper/terabyte-image-cropper/4519-A-few-suggestion--%29
  • [2] http://our.umbraco.org/projects/backoffice-extensions/terabyte-image-cropper/terabyte-image-cropper/5503-Cannot-handle-images-with-Swedish-characters-in-the-file-name?p=0#comment20692

Roadmap (wish list)
I'd like to add the option to fix one dimension of the crop and allow th user to select the other, eg: fixed width variable height.

Revision History

v0.9.5
- updated to be compatible with umbraco 4.5 and 4.0.x
v0.9.4
- updated to fix null reference error occurring when used with other datatypes that take advantage of AJAX postbacks.
v0.9.3
 - updated jCrop library to fix IE8 issues.
v0.9.2
 - changed: DataTypeName to "Terabyte Image Cropper" to be more unique
 - ! missing DLLs
v0.9.1
 - added: configuration to ignore missing files (for shared DB seperate FS)
 - bug: fix validation for non-image files
 - bug: escape filename in jQuery so filenames with & in them can be cropped.
v0.9.0
 - added: support for the mandatory checkbox and regex validation.
v0.8.4
 - bug: fixed preview bugs in IE7
v0.8.3
 - added: support for images larger than the available space (shrink to fit)
v0.8.2
 - basic features (with support for fixed aspect ratio only)

Screenshots

Package owner

Murray Roke

Murray Roke

Murray has 839 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
8.1.x (untested)
8.0.x (untested)
7.14.x (untested)
7.13.x (untested)
7.12.x (untested)
7.11.x (untested)
7.10.x (untested)
7.9.x (untested)
7.8.x (untested)
7.7.x (untested)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (untested)
7.2.x (untested)
7.1.x (untested)
7.0.x (untested)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Murray Roke
  • Created: 01/10/2009
  • Current version 0.9.5
  • License MIT
  • Downloads: 3910