{"repo":"CanHub/Android-Image-Cropper","free":true,"listed":false,"github":"https://github.com/CanHub/Android-Image-Cropper","clone":"git clone https://github.com/CanHub/Android-Image-Cropper.git","description":"Image Cropping Library for Android, optimised for Camera / Gallery.","language":"Kotlin","stars":1504,"topics":["android","android-image-cropper","android-image-crop","canhub","cropper","camera","gallery","hacktoberfest","android-library","kotlin"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"Android Image Cropper ===================== - Powerful (Zoom, Rotation, Multi-Source) - Customizable (Shape, Limits, Style) - Optimized (Async, Sampling, Matrix) - Simple image cropping library for Android Add to your project Using the Library There are 3 ways of using the library. Check out the sample app for all details. 1. Calling crop directly Note: This way is deprecated and will be removed in future versions. The path forward is to write your own Activity, handle all the Uri stuff yourself and use CropImageView . 2. Using CropView Note: This is the only way forward, add CropImageView into your own activity and do whatever you wish. Checkout the sample for more details. - Set image to crop - Get cropped image 3. Extend to make a custom activity Note: This way is also deprecated and will be removed in future versions. The path forward is to write your own Activity, handle all the Uri stuff yourself and use CropImageView . If you want to extend the CropImageActivity please be aware you will need to set up your CropImageView - Add CropImageActivity into your AndroidManifest.xml - Set up your CropImageView after call super.onCreate(savedInstanceState) Custom dialog for image source pick When calling crop directly the library will prompt a dialog for the user choose between gallery or camera (If you keep both enable). We use the Android default AlertDialog for this. If you wanna customised it with your app theme you need to override the method showImageSourceDialog(..) when e","default_branch":null,"files":null,"tree":[],"storefront":"/r/CanHub","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/CanHub/Android-Image-Cropper/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}