Fork me on GitHub

Image Cropper

<img id="myImage" src="http://alloyui.com/image-cropper/img/crop-image.jpg" />
YUI().use(
  'aui-image-cropper',
  function(Y) {
    new Y.ImageCropper(
      {
        cropHeight: 200,
        cropWidth: 200,
        srcNode: '#myImage',
        x: 50,
        y: 50
      }
    ).render();
  }
);