Comments (4)
Sure, I'm writing an uploader where the user can crop the image by choosing the aspect from a dropdown.
I like your package, because it is slim and easy to use, does exactly what we need (besides the aspect issue).
cheers
from react-easy-crop.
Just a quick demo of what I'm going to merge in master: https://codesandbox.io/s/l5r270r19q
On this demo, the slider changes the aspect. 🎉
from react-easy-crop.
Hi! Thanks for creating the first (real) issue on this project! 🎉
Indeed, changing the aspect at runtime is not supported at the moment. You can only set it during initialization. Do you have a use case where you need to set the aspect at runtime?
This isn't hard to implement, only to add a new switch case in the componentDidMount()
to update the UI accordingly.
from react-easy-crop.
OK it makes sense.
PR on its way 😉
from react-easy-crop.
Related Issues (20)
- Allow padding to the crop area HOT 5
- Triggers unwanted blob request when using local files for cropping HOT 2
- Multiple Crop Areas HOT 1
- Can this library crop images with custom aspects / resizable cropper? HOT 1
- How can i add Any Text and crop the image with Text. HOT 1
- How to make the crop pan to always fit the height and width on the image. HOT 17
- Black background when cropping image
- 'Cropper' cannot be used as a JSX component. HOT 1
- Update depreciated packages ! HOT 2
- On Safari, images tend to be blurry when zoomed in in the preview HOT 2
- Square image in ios HOT 2
- JSX element class does not support attributes because it does not have a 'props' property. HOT 8
- The scale increases if you do not touch the image when cropping
- Allow lenient dependency on tslib HOT 4
- When using input fields for Crop X and Y values the crop completed is not triggered HOT 1
- Safari object-fit: cover HOT 5
- Allow setting padding for crop area HOT 2
- `style.cropAreaStyle.width` and `height` don't work. They are still certain values when set to be `100%`. HOT 1
- Dragging cannot make the image fully inside the cropping box. HOT 8
- Examples and local implementation crash on ios browser HOT 21
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 react-easy-crop.