1 line
3.1 KiB
JSON
1 line
3.1 KiB
JSON
{"name":"android-crop","tagline":"An Android library project for cropping images","body":"> I guess people are just cropping out all the sadness\r\n\r\nAn Android library project to provide a simple image cropping `Activity`, based on code from AOSP.\r\n\r\n[](https://travis-ci.org/jdamcd/android-crop) \r\n[](http://search.maven.org/#artifactdetails%7Ccom.soundcloud.android%7Candroid-crop%7C1.0.1%7Caar.asc)\r\n[](CHANGELOG.md)\r\n\r\n## Features\r\n\r\n* Gradle build & AAR\r\n* Modern UI\r\n* Backwards compatible to SDK 10\r\n* Simple builder for configuration\r\n* Example project\r\n\r\n## Usage\r\n\r\nFirst, declare `CropImageActivity` in your manifest file:\r\n\r\n`<activity android:name=\"com.soundcloud.android.crop.CropImageActivity\" />`\r\n\r\n#### Crop\r\n\r\n`Crop.of(inputUri, outputUri).asSquare().start(activity)`\r\n\r\nListen for the result of the crop (see example project if you want to do some error handling):\r\n\r\n @Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent result) {\r\n if (requestCode == Crop.REQUEST_CROP && resultCode == RESULT_OK) {\r\n doSomethingWithCroppedImage(outputUri);\r\n }\r\n }\r\n \r\nSome options are provided to style the crop screen. See example project theme.\r\n\r\n#### Pick\r\n\r\nThe library provides a utility method to start an image picker:\r\n\r\n`Crop.pickImage(activity)`\r\n\r\n#### Dependency\r\n\r\nThe AAR is published on Maven Central:\r\n\r\n`compile 'com.soundcloud.android:android-crop:1.0.1@aar'`\r\n\r\n#### Users\r\n\r\nApps that use this library include: [SoundCloud](https://play.google.com/store/apps/details?id=com.soundcloud.android), [Depop](https://play.google.com/store/apps/details?id=com.depop), [Polyvore](https://play.google.com/store/apps/details?id=com.polyvore), [TextSecure](https://play.google.com/store/apps/details?id=org.thoughtcrime.securesms)\r\n\r\n## How does it look?\r\n\r\n\r\n\r\n## License\r\n\r\nThis project is based on the [AOSP](https://source.android.com) camera image cropper via [android-cropimage](https://github.com/lvillani/android-cropimage).\r\n\r\n Copyright 2015 SoundCloud\r\n\r\n Licensed under the Apache License, Version 2.0 (the \"License\");\r\n you may not use this file except in compliance with the License.\r\n You may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n Unless required by applicable law or agreed to in writing, software\r\n distributed under the License is distributed on an \"AS IS\" BASIS,\r\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n See the License for the specific language governing permissions and\r\n limitations under the License.\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} |