View on GitHub

Imagecrop4mobile

A minimalist image cropping widget for mobile web

Download this project as a .zip file Download this project as a tar.gz file

ImageCrop4Mobile

ImageCrop4Mobile is a minimalist image cropping widget with no dependences for mobile web.

Online Demo

Online Demo

Usage

var ic = new ImageCrop(document.querySelector('.container'), './mei.jpg', {

  /* crop size */
  size: 200,

  /*
   If true, the crop area will be rendered as an ellipse
   instead of a rectangle.
   */
  circle: true,

  onChanged: function(areaInfo) {
    console.log(areaInfo);
  }

});