Let users crop a profile photo before uploading it in your Android app.
Build a photo editor flow where users pick an image from their gallery and trim it to size.
Add quick avatar or thumbnail cropping to any Android app with minimal code.
Add via Gradle from Maven Central, call the one-line API to launch crop, handle result in onActivityResult. Note: project is deprecated, consider forking or finding a maintained alternative.
android-crop is an Android library that adds image cropping to mobile apps. It comes from SoundCloud's codebase and is based on the image cropping tool originally built into Android's camera app (AOSP, the Android Open Source Project). The library packages that functionality as something any Android developer can drop into their own app. The core of the library is a built-in Activity, which in Android terms means a full-screen UI screen dedicated to one task. When an app starts the crop screen, the user sees the image with a draggable crop frame, adjusts the area they want to keep, and confirms. The result comes back to the app through Android's standard activity result mechanism. The API is intentionally brief: a one-line call starts the crop process, and a few lines in the result handler receive the cropped image. The library also includes a utility method for opening the device image picker, so an app can let the user select a photo from their gallery and then immediately crop it. Configuration is mostly handled through Android theme attributes, so the look of the crop screen can be adjusted to match an app's visual style without code changes. The library targets older Android versions as well as current ones, with compatibility going back to SDK level 10. It was distributed through Maven Central, the standard package repository for Java and Android projects, using Gradle as the build system. The README marks the project as deprecated and no longer maintained. The library still works as described, but the author notes that anyone needing changes should fork it or look for a maintained replacement.
← jdamcd on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.