Skip to content
This repository has been archived by the owner on Jun 17, 2021. It is now read-only.

Latest commit

 

History

History
28 lines (19 loc) · 576 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 576 Bytes

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);
  }
  
});