PhotoCropper is a light-weight but sharp and smart tool to help you cropping photos on android devices. By providing a simple callback interface for developers and encapsulating the tricky things of cropping photos into a library. It makes the logic much more easier and simpler.
One of the popular scaletype configurations used in Android is the "centerCrop". However, it is limited to just center cropping. This usually crops off the faces of people from images that have an aspect ratio height > width.
JCropImageView is a lightweight extension of the centercrop feature to provide additional control over how the images are displayed.
The PhotoCrop is an image cropping tool. It provides a way to set an image in XML and programmatically, and displays a resizable crop window on top of the image. Calling the method
getCroppedImage() will then return the Bitmap marked by the crop window.
There are many image cropping tools that can be implemented in Android, but the only problem is that they only crop out square or rectangular parts on an image. So, this example will show my implementation of an image cropping tool where it crops out non-rectangular images.