Comments (2)
Indeed, having all the conditions tied together doesn't seem right. Most of else should be removed I think.
By the way, why are you using cropSize
instead of aspect
?
from react-easy-crop.
I made some local patch for our case, but if i will have time i'll will try investigate how can be helpful aspect.
from react-easy-crop.
Related Issues (20)
- Feature Request: objectFit: auto-contain, but the other way around HOT 6
- getCroppedImg returning undefined on IOS HOT 12
- Configure cropper with a fixed crop area size HOT 6
- Crop selections overlap HOT 5
- Image size increases drastically after cropping HOT 2
- Crop Area incorrectly sized for objectFit='cover' HOT 4
- Scrollwheel zoom does not work properly with restrictPosition=false HOT 8
- Question: Cropper 100% width and/or 100% Height HOT 7
- Cannot use import statement outside a module HOT 26
- Cropped image area changes when we zoom in the image , even when cropSize is given HOT 1
- Crop area does not take up the full height/width of the image HOT 6
- Frames are lost on cropping a GIF HOT 3
- There is a bug in setting restrictPosition = true HOT 2
- 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
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.