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

image-components/ImageCrop4Mobile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published