ArthurHub/Android-Image-Cropper sits at 6.4k stars on GitHub, written primarily in Java. Image Cropping Library for Android, optimized for Camera / Gallery.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Add CropImageActivity into your AndroidManifest.xml
<activity android:name="com.theartofdev.edmodo.cropper.CropImageActivity"
android:theme="@style/Base.Theme.AppCompat"/> <!-- optional (needed if default theme has no action bar) -->
Start CropImageActivity using builder pattern from your activity
// start picker to get image for cropping and then use the image in cropping activity
CropImage.activity()
.setGuidelines(CropImageView.Guidelines.ON)
.start(this);
// start cropping activity for pre-acquired image saved on the device
CropImage.activity(imageUri)
.start(this);
// for fragment (DO NOT use `getActivity()`)
CropImage.activity()
.start(getContext(), this);
Override onActivityResult method in your activity to get crop result
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {
CropImage.ActivityResult result = CropImage.getActivityResult(data);
if (resultCode == RESULT_OK) {
Uri resultUri = result.getUri();
} else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {
Exception error = result.getError();
}
}
}
Using View
Add CropImageView into your activity
<!-- Image Cropper fill the remaining available height -->
<com.theartofdev.edmodo.cropper.CropImageView
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:id="@+id/cropImageView"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"/>
Set image to crop
cropImageView.setImageUriAsync(uri);
// or (prefer using uri for performance and better user experience)
cropImageView.setImageBitmap(bitmap);
Get cropped image
// subscribe to async event using cropImageView.setOnCropImageCompleteListener(listener)
cropImageView.getCroppedImageAsync();
// or
Bitmap cropped = cropImageView.getCroppedImage();
Features
Built-in CropImageActivity.
Set cropping image as Bitmap, Resource or Android URI (Gallery, Camera, Dropbox, etc.).
Image rotation/flipping during cropping.
Auto zoom-in/out to relevant cropping area.
Auto rotate bitmap by image Exif data.
Set result image min/max limits in pixels.
Set initial crop window size/location.
Request cropped image resize to specific size.
Bitmap memory optimization, OOM handling (should never occur)!
API Level 14.
More..
Customizations
Cropping window shape: Rectangular or Oval (cube/circle by fixing aspect ratio).
Cropping window aspect ratio: Free, 1:1, 4:3, 16:9 or Custom.
Guidelines appearance: Off / Always On / Show on Toch.
Cropping window Border line, border corner and guidelines thickness and color.
Cropping background color.
For more information, see the GitHub Wiki.
Posts
Android cropping image from camera or gallery
Android Image Cropper async support and custom progress UI
Adding auto-zoom feature to Android-Image-Cropper
Change log
2.8.0
Fix crash on Android O (thx @juliooa)
Update to support library to AndroidX (thx @mradzinski)
Handle failure when selecting non image file (thx @uncledoc)
More translations (thx @jkwiecien, @david-serrano)
2.7.0
Update gradle wrapper to 4.4
Update support library to 27.1.1 and set is statically! (thx @androideveloper)
Fix NPE in activity creation by tools (thx @unverbraucht)
More translations (thx @gwharvey, @dlackty, @JairoGeek, @shaymargolis)
See full change log.
License
Originally forked from edmodo/cropper.
Copyright 2016, Arthur Teplitzki, 2013, Edmodo, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License.
You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Does ArthurHub/Android-Image-Cropper have a project website?
No homepage URL was recorded for ArthurHub/Android-Image-Cropper in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
How active is development on ArthurHub/Android-Image-Cropper?
The most recent commit recorded on ArthurHub/Android-Image-Cropper was 3.2 years ago, based on the GitHub push timestamp. The repository has 1.4k forks — one of the better signals of community interest.
Is ArthurHub/Android-Image-Cropper open source?
Yes — ArthurHub/Android-Image-Cropper ships under the Apache-2.0 license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/ArthurHub/Android-Image-Cropper.
What license does ArthurHub/Android-Image-Cropper use?
ArthurHub/Android-Image-Cropper is released under the Apache-2.0 license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
What topics is ArthurHub/Android-Image-Cropper associated with?
GitHub's repository topics for ArthurHub/Android-Image-Cropper: "android", "android-image-cropper", "cropper". TopGit's editorial category is Mobile.
Where do I read more about ArthurHub/Android-Image-Cropper?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/ArthurHub/Android-Image-Cropper is the definitive source.
Read full README in the tab above.
Still deciding about Android-Image-Cropper?
One click hands the question to an AI along with this page — see what it says about Android-Image-Cropper.