NoCropper - Android Library for Cropping
Finally, after more than a year of working with Android, I’m releasing my first Open Source Library for Android. As the title says, the library is named NoCropper. It’s a lightweight library for cropping images. Since it doesn’t use any special features of Android, it is compatible with 11+ version of android (it uses ValueAnimator).
What’s So Special About It
Well, It’s my first open source library. Apart from that, it’s a simple image cropper which also lets user not crop the image and convert it to square with fancy animations.
Demo
Here’s a poorly made gif and YouTube video for you.
GitHub Repo
Here’s the GitHub Repo
How To Use In Your Android Project
Just add the following dependency in your build.gradle
file.
dependencies {
implementation 'com.fenchtose.nocropper:nocropper:0.3.0'
// This page may be outdated as the library keeps updating.
// implementation 'com.fenchtose.nocropper:nocropper:+'
// We don't recommend this. It's better to check the latest version on the Github.
}
Following repositories can be added
Maven
repositories {
maven {
url "http://dl.bintray.com/jayrambhia/maven"
}
}
JCenter
repositories {
jcenter()
}
Code
Java
XML Layout
Here’s a sample
Check GitHub for the latest version of the library
P.S. This is quite exciting for me. Here’s a blogpost about it.