{"id":3519,"url":"https://github.com/jdamcd/android-crop","last_synced_at":"2025-08-12T01:30:55.412Z","repository":{"id":14980941,"uuid":"17706097","full_name":"jdamcd/android-crop","owner":"jdamcd","description":"Android library project for cropping images","archived":true,"fork":false,"pushed_at":"2021-06-01T04:07:06.000Z","size":2835,"stargazers_count":4541,"open_issues_count":132,"forks_count":1075,"subscribers_count":181,"default_branch":"master","last_synced_at":"2024-06-21T15:38:15.364Z","etag":null,"topics":["android-library","deprecated"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdamcd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-13T10:24:43.000Z","updated_at":"2024-06-13T10:32:42.000Z","dependencies_parsed_at":"2022-08-08T13:00:21.098Z","dependency_job_id":null,"html_url":"https://github.com/jdamcd/android-crop","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdamcd%2Fandroid-crop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdamcd%2Fandroid-crop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdamcd%2Fandroid-crop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdamcd%2Fandroid-crop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdamcd","download_url":"https://codeload.github.com/jdamcd/android-crop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229624723,"owners_count":18100638,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-library","deprecated"],"created_at":"2024-01-05T20:16:43.810Z","updated_at":"2024-12-13T22:30:37.789Z","avatar_url":"https://github.com/jdamcd.png","language":"Java","readme":"\u003e I guess people are just cropping out all the sadness\n\nAn Android library project that provides a simple image cropping `Activity`, based on code from AOSP.\n\n**Deprecated!** This project is not maintained. If it doesn't meet your needs as is, consider creating a fork or picking from these [alternatives](https://android-arsenal.com/tag/45).\n\n[![maven central](https://img.shields.io/badge/maven%20central-1.0.1-brightgreen.svg)](http://search.maven.org/#artifactdetails%7Ccom.soundcloud.android%7Candroid-crop%7C1.0.1%7Caar.asc)\n[![changelog](https://img.shields.io/badge/changelog-1.0.1-lightgrey.svg)](CHANGELOG.md)\n\n## Features\n\n* Gradle build \u0026 AAR\n* Modern UI\n* Backwards compatible to SDK 10\n* Simple builder for configuration\n* Example project\n\n## Usage\n\nFirst, declare `CropImageActivity` in your manifest file:\n\n```xml\n\u003cactivity android:name=\"com.soundcloud.android.crop.CropImageActivity\" /\u003e\n```\n\n#### Crop\n\n```java\nCrop.of(inputUri, outputUri).asSquare().start(activity)\n```\n\nListen for the result of the crop (see example project if you want to do some error handling):\n\n```java\n@Override\nprotected void onActivityResult(int requestCode, int resultCode, Intent result) {\n    if (requestCode == Crop.REQUEST_CROP \u0026\u0026 resultCode == RESULT_OK) {\n        doSomethingWithCroppedImage(outputUri);\n    }\n}\n```\n    \nSome attributes are provided to customise the crop screen. See the example project [theme](https://github.com/jdamcd/android-crop/blob/master/example/src/main/res/values/theme.xml).\n\n#### Pick\n\nThe library provides a utility method to start an image picker:\n\n```java\nCrop.pickImage(activity)\n```\n\n#### Dependency\n\nThe AAR is published on Maven Central:\n\n```groovy\ncompile 'com.soundcloud.android:android-crop:1.0.1@aar'\n```\n\n## How does it look?\n\n![android-crop screenshot](screenshot.png)\n\n## License\n\nThis project is based on the [AOSP](https://source.android.com) camera image cropper via [android-cropimage](https://github.com/lvillani/android-cropimage).\n\n    Copyright 2016 SoundCloud\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":["Libraries","Index `(light-weight pages)`","Java","图片","Index","Libs"],"sub_categories":["GUI","ImageView","\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdamcd%2Fandroid-crop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdamcd%2Fandroid-crop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdamcd%2Fandroid-crop/lists"}