elemefe / image-cropper Goto Github PK
View Code? Open in Web Editor NEWA image cropper for cropping user avatar, no dependencies.
Home Page: http://elemefe.github.io/image-cropper/
License: MIT License
A image cropper for cropping user avatar, no dependencies.
Home Page: http://elemefe.github.io/image-cropper/
License: MIT License
Can you do a plain js version instead of making it modular? Thanks.
src/cropper.js
当中
var Resizer = require('./Resizer');
文件名为大写
实际resizer.js
文件名为小写
Linux出错
vue得怎么引用?
默认情况下是正方型,100x100的(比例绽放),但需求是高度与宽度不一样,这个如何调整?
更新到了0.3.0版本:
增加了aspectRatio的选项,设置为非数字,则为任意宽高比。
文档也已经补充到首页上了,例子可参考demo/standalone-noar.html。
使用的是jquery1.8, cropper, input如例子中定义一样, 然后调用 getCanvasData和$("#cropper-target").cropper('getCroppedCanvas') 都是失败的
当图片剪切完毕后,就触发提交的吗?
虽然不太影响功能,但为了像素完美……
此外,很多地方left,top,width,height都没做浮点数的取整处理
在angular4 import {Cropper} from 'image-cropper.js' 后, new Cropper 时报错 "is not a constructor"
怎么获取裁剪后的图片,然后上传到后台
有没有函数,是需要手动裁剪吗?
谢谢。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.