Comments (10)
I confirm.
Video: http://dropmefiles.com/UEQjI
Scale and translation gesture are activated.
from cropiwa.
- @vellrya @AnswerZhao You can set a min-max scale. Default min is 0.7, default max is 3.
app:ci_max_scale="1f"
cropView.configureImage()
.setMinScale(minScale)
.setMaxScale(maxScale)
.apply();
Try to decrease minScale / increase maxScale
from cropiwa.
@polyak01 It can't works.
from cropiwa.
@AnswerZhao do you try to setMinScale(0.1f)?
from cropiwa.
@polyak01
float scaleFactor = detector.getScaleFactor(); float newScale = matrixUtils.getScaleX(imageMatrix) * scaleFactor;
When the photo is too small, the newScale value is too lager than the maxScale.(70*70Px, the newScale is 25), so i think the scale value is not perfect. I change the method isValidScal() to resolve it finally.
from cropiwa.
@polyak01
I set MaxScale to 9f (minimum value at which it start working with my (409*103) picture) and MinScale to 0f.
It works, but it works strange. Until I set the frame with the same aspect ratio as the picture itself, I can not reduce the image. In addition, scale gestures work only outside the crop area.
(Video: http://dropmefiles.com/DbG2d)
from cropiwa.
@vellrya 9 is not work for everything, you can try a 43*43 picture.
from cropiwa.
Okay. I decided for myself this problem. I completely removed Min and Maxscale and did this:
cropView.configureOverlay()
.setAspectRatio(AspectRatio.IMG_SRC)
.apply()
Now I can correctly move and scale small pictures. (http://dropmefiles.com/KQByj)
It remains only to wait for the ability to rotate pictures in this library)
from cropiwa.
@AnswerZhao Did you solved the problem?
from cropiwa.
@polyak01 Yep. You can change the implement of the method isValidScal() ,or increase the maxScale, or remove the limits of maxScale.
from cropiwa.
Related Issues (20)
- How to set background color of CropIwaView?
- Build tool version and dependency support library HOT 1
- crash with cropiwa while cropping image HOT 4
- crop size more than screen width
- crash when the image not positioned on overlay HOT 2
- How to get x and y position of grid? HOT 1
- How to use this library for camera HOT 1
- setsize height and width for output not working
- Set Crop View position
- Warning: CropIwaOvalShape: can't find referenced method 'int save(int)'
- Get Black sreen after I save image and dispay on content Page in xamarin.
- How to make crop shape without margin HOT 1
- reset zoom level while loading multiple images in same cropview
- When attempting to run sample, following error occurs. HOT 1
- Custom touch listener | Ability to add custom gestures
- Crash when the Uri has "content://" scheme
- Center the crop window in the frame
- After cropping croppedUri gives original image not cropped how to fix that?
- How to set image set ScaleType ? HOT 1
- An error occured while executing doInBackground()
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 cropiwa.