Comments (2)
Not right now. Here's the relevant lines in case you want to modify it or take a stab at a PR (which I would appreciate)
https://github.com/jeduan/cordova-plugin-crop/blob/master/src/ios/CTCrop.m#L47
https://github.com/jeduan/cordova-plugin-crop/blob/master/src/android/CropPlugin.java#L39
from cordova-plugin-crop.
@kosurusekhar Looking for something similar, did you manage to do this? thanks
@jeduan I found a fork with a modified crop class at jdamcd/android-crop#224
This one has this code which can be used to set a minimum size:
public Crop withMinSize(int width, int height) { cropIntent.putExtra(Extra.MIN_X, width); cropIntent.putExtra(Extra.MIN_Y, height); return this; }
Crop.of(source, destination).withMinSize(512, 512).asSquare().start(this)
or in this plugin something like:
Crop.of(this.inputUri, this.outputUri).withMinSize(512, 512).asSquare().start(cordova.getActivity());
But my programming knowledge is at beginners level and i've never used java therefore i've got no idea how to override the imported Crop Class with this modified Crop class that makes setting a minimum size possible. I've tried to remove the line
import com.soundcloud.android.crop.Crop;
and added a new Cop.java file with the modified Crop class and put it inside inside the "cropimagePlugin\cordova-plugin-crop-master\src\android" folder. However anything with removing the imported Crop class seems to create a build error.
If you know how this can be done in this plugin i'd appreciate your help, thanks!
from cordova-plugin-crop.
Related Issues (20)
- Crash issue for Android
- I hava some changes HOT 1
- Question on this plugin
- Plugin is not updating to the modified targetWidth and targetHeight latest version HOT 2
- App crash on android when device orientation horizontal
- Android 8.00 camera bug
- Change the button's text label
- Error userCancelled HOT 2
- Android 7+ problem in save cropped image HOT 10
- final image size is bigger then targetWidth and targetHeight HOT 9
- plugin_not_installed Error HOT 1
- add option to auto resize image
- Rectangle crop
- Image transparency not supported
- Selecting multiple images for crop crash the APP HOT 1
- IOS : Allow rotation and display button for rotate
- Error cropping image Unable to find explicit activity class HOT 1
- Failure form system
- To save crop image in persitent storage
- Crop image not woks on android syteme
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 cordova-plugin-crop.