smartcrop.js - JavaScript 智能裁剪库


MIT
跨平台
JavaScript

软件简介

smartcrop.js 是 JavaScript 智能裁剪库,绝对不会裁剪掉头像。

支持:

  • common js

  • amd

  • global export / window

简单示例:

SmartCrop.crop(image, {width: 100, height: 100}, function(result){console.log(result);});
// {topCrop: {x: 300, y: 200, height: 200, width: 200}}