About / FeedbackDemoHelp / Download

AboutComments/Feedback

A javascript-(mootools)-only tool to select a part of an image and crop it

Requirements

  • Works in Safari 3+, Firefox 3+, Chrome 3+, IE 6, IE 7, IE 8 and Opera 9+
  • Requires mootools 1.23+ with Drag.Move and (for example) PHP to crop the image

Features

  • Only 4 DIVs necessary
  • Marching Ants effect via CSS..! (Safari and Firefox of course only)
  • Shows crop dimensions (w x h) – and x/y-position while moving (configurable)
  • Crop-Button inside the frame (optional)
  • Hold SHIFT to select a square area
  • Also works with scaled images – shows the real size then
  • Minimal size, maximal size, initial position, fixedratio (optional) and x-/y-ratio constraints are configurable
  • Result: x- and y-position, width and height

Demo

cwcrop-screenshot

Downloads

Github Repository: github.com/mariofischer/cwcrop »

Changelog

0.95
Bugfixes (initialmax, ratio)
0.8
Bugfixes
0.76
Mootools 1.3 compatibility
0.70
Updates for value checking, documentation, performance Bugfixes for larger original image
0.68
Added fixed ratio
0.67
Initial public release Posted to Mootools Forge, Github