Comments (7)
Now I don't have time to add this feature. If you can provide a PR, it will be very nice~
from antd-img-crop.
Hello @nanxiaobei ,
I managed to create the zoom and rotation functionalitites for the component, but unfortunatelly I cannot create a PR since I don't have permission for it.
Can you please help me with that?
Thanks.
from antd-img-crop.
I think maybe there's something wrong with your PR submission steps.
from antd-img-crop.
Hey @nanxiaobei,
Do you think you can help me with an estimation for when or if this feature will be published?
Thanks
from antd-img-crop.
Hi, I've released this feature for 2.5.0
.
But I changed rotation
to rotate
, rotationTitle
to rotateLabel
.
And I removed the zoom
feature.
Because the component has a resize
prop now, and zoom
overlaps with resize
(although slightly different).
For the sake of component simplicity, I removed zoom
.
from antd-img-crop.
Hey, thank you very much for the update.
Resize
prop is nice, but it's hard to use when you have a large image and you want to pick one place in this image for example and maybe Zoom
feature will help the user.
What do you think?
from antd-img-crop.
Hello, I've upgraded antd-img-crop
to 3.0
now. It has been refactored with the lib react-easy-crop
, and 'zoom' and 'rotate' props can be used.
from antd-img-crop.
Related Issues (20)
- 关于受控的文件列表 HOT 1
- The image has lost its transparent background HOT 2
- useless Ok button when using tailwindcss HOT 1
- TS error TS2322 Type '{ children: Element }' is not assignable to type 'IntrinsicAttributes & ImgCropProps'. Property 'children' does not exist on type 'IntrinsicAttributes & ImgCropProps'. HOT 1
- When crop a gif, it convert it to static picture HOT 1
- Upgrade dept
- Show crop modal only for case when image did not pass validation HOT 4
- ImageCrop not working with beforeUpload={() => false} HOT 1
- 选择一张背景背景透明的图片,最后背景变成了白色 HOT 1
- Image Upload Persists Despite Cancel HOT 1
- beforeCrop 返会false后,beforeUpload不再执行 HOT 1
- 为啥beforeCrop这个函数return file在不同环境下表现不一致
- 建议zoomSlider、rotationSlider、aspectSlider分别都添加一个步进参数,每点击一下,可步进多少 HOT 1
- 使用antd": "4.22.4", 剪裁弹窗点击取消后仍然会触发onChange事件进行上传操作 HOT 4
- Is there a way to move the crop square over the image/canvas. Rather than zooming into the image and then moving it HOT 1
- How do i send a resized image to the cropper ? HOT 1
- ShadowDom wrapper HOT 2
- beforeUpload 返回了false,但依然发起上传 HOT 9
- 开发环境下,beforeCrop返回false会停止上传,生产环境下,返回false会继续执行上传
- next.js 中 modal 取消还是会发起上传请求,onModalCancel resolve 并没有效果 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antd-img-crop.