Comments (2)
setMinZoom(0) will not work.
From what I understand about what you're trying to achieve, you need to set a correct min zoom value.
minZoom = Math.min(width, height)/Math.max(width, height)
Set this value as min zoom. This value will make sure that the smallest side (width or height) will always be greater or equal to the size of the cropper view.
Alternatively, you can try this
minZoom = Math.max(width, height)/Math.min(width, height)
This min zoom will make sure that the biggest side (width or height) is always equal or greater than the size of the cropper view.
from croppernocropper.
Hey @jayrambhia , after setting a minZoom value I'm still able to zoom out so I guess it's not working as intended. Can you confirm, please?
from croppernocropper.
Related Issues (20)
- Is there anyway to find out the max zoom for my photos? e.g I want my higher dimension images that can only be zoomed till 1024px X 1024px dimensions HOT 1
- CropperView on ViewPager Swipe problem HOT 3
- minimum zoom related to Image width and height. HOT 1
- getCroppedBitmap returns BitmapResult and not a Bitmap HOT 1
- Cropped Bitmap also take black portion which is not part of Image . HOT 2
- Zoom not working inside Scrollview/Nested Scrollveiw
- save translations done on the image and restore back HOT 6
- Can Load Video in CropActivity
- How to Save Crop State
- Image Rotate issue on Some devices HOT 1
- How to set this cropper view with vertical rectangular layout?
- Can't pinch smoothly if image size is large. (Performance) HOT 2
- question HOT 1
- Cropping current bitmap. Can't perform this action right now help please
- No grid when moving HOT 1
- Applying cropping to the Rotated image was not working
- y+height must be <= bitmap.getHeight(); HOT 1
- we can crop image out of image size with transparency background? Help us please
- cropper.crop() cropping incorrectly
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 croppernocropper.