1 Star 2 Fork 1

None / we-cropper

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

微信小程序图片裁剪工具we-cropper

一款灵活小巧的canvas图片裁剪器

Feature

  • 实用的API
  • 灵活的钩子函数
  • 多场景的demo可供参考:
    • 常规裁剪
    • 上传裁剪头像
    • 裁剪网络图片
    • 添加水印
    • 局部裁剪

Usage

克隆项目到你的目录

cd my-project

git clone https://github.com/dlhandsome/we-cropper.git

 使用编译后的文件dist/weCropper.js

var weCropper = require('dist/weCropper')

// ES6(需在开发工具勾选ES6转ES5)
import weCropper from 'dist/weCropper'

对插件进行开发调试

npm install

在src下进行文件修改

npm run build

Links

Document

ChangeLog

Example

License

The MIT License(http://opensource.org/licenses/MIT)

请自由地享受和参与开源

Contributing

如果你有好的意见或建议,欢迎给我提issue或pull request

MIT License Copyright (c) 2017 dlhandsome Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

微信小程序图片裁剪工具 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/wwm3703332/we-cropper.git
git@gitee.com:wwm3703332/we-cropper.git
wwm3703332
we-cropper
we-cropper
master

搜索帮助