[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-4303":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":22,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},4303,"Android-Image-Cropper","ArthurHub\u002FAndroid-Image-Cropper","ArthurHub","Image Cropping Library for Android, optimized for Camera \u002F Gallery.","",null,"Java",6421,1369,176,345,0,1,65.51,"Apache License 2.0",false,"master",true,[24,25,26],"android","android-image-cropper","cropper","2026-06-12 04:00:22","Android Image Cropper\n=======\n\n# :triangular_flag_on_post: The Project is NOT currently maintained :triangular_flag_on_post:\n\n## Please use **[CanHub's fork](https:\u002F\u002Fgithub.com\u002FCanHub\u002FAndroid-Image-Cropper)!**\n\n### Thank everybody for using the library. It was very fun to create and a privilage to help you build awesome apps.\n### The same way I took an unmaintained initial implementation from [edmodo](https:\u002F\u002Fgithub.com\u002Fedmodo\u002Fcropper), I'm happy to see [CanHub](https:\u002F\u002Fgithub.com\u002FCanHub\u002FAndroid-Image-Cropper) taking it now.\n### Good luck and happy coding :octocat:\n\n\n----\n----\n[![Android Arsenal](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAndroid%20Arsenal-Android--Image--Cropper-green.svg?style=true)](https:\u002F\u002Fandroid-arsenal.com\u002Fdetails\u002F1\u002F3487)\n[![Build Status](https:\u002F\u002Ftravis-ci.org\u002FArthurHub\u002FAndroid-Image-Cropper.svg?branch=master)](https:\u002F\u002Ftravis-ci.org\u002FArthurHub\u002FAndroid-Image-Cropper)\n\n**Powerful** (Zoom, Rotation, Multi-Source), **customizable** (Shape, Limits, Style), **optimized** (Async, Sampling, Matrix) and **simple** image cropping library for Android.\n\n![Crop](https:\u002F\u002Fgithub.com\u002FArthurHub\u002FAndroid-Image-Cropper\u002Fblob\u002Fmaster\u002Fart\u002Fdemo.gif?raw=true)\n\n## Usage\n*For a working implementation, please have a look at the Sample Project*\n\n[See GitHub Wiki for more info.](https:\u002F\u002Fgithub.com\u002FArthurHub\u002FAndroid-Image-Cropper\u002Fwiki)\n\n1. Include the library\n\n ```\n dependencies {\n     api 'com.theartofdev.edmodo:android-image-cropper:2.8.+'\n }\n ```\n\nAdd permissions to manifest\n\n ```\n \u003Cuses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\"\u002F>\n \u003Cuses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"\u002F>\n ```\nAdd this line to your Proguard config file\n\n```\n-keep class androidx.appcompat.widget.** { *; }\n```\n### Using Activity\n\n2. Add `CropImageActivity` into your AndroidManifest.xml\n ```xml\n \u003Cactivity android:name=\"com.theartofdev.edmodo.cropper.CropImageActivity\"\n   android:theme=\"@style\u002FBase.Theme.AppCompat\"\u002F> \u003C!-- optional (needed if default theme has no action bar) -->\n ```\n\n3. Start `CropImageActivity` using builder pattern from your activity\n ```java\n \u002F\u002F start picker to get image for cropping and then use the image in cropping activity\n CropImage.activity()\n   .setGuidelines(CropImageView.Guidelines.ON)\n   .start(this);\n\n \u002F\u002F start cropping activity for pre-acquired image saved on the device\n CropImage.activity(imageUri)\n  .start(this);\n\n \u002F\u002F for fragment (DO NOT use `getActivity()`)\n CropImage.activity()\n   .start(getContext(), this);\n ```\n\n4. Override `onActivityResult` method in your activity to get crop result\n ```java\n @Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n   if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n     CropImage.ActivityResult result = CropImage.getActivityResult(data);\n     if (resultCode == RESULT_OK) {\n       Uri resultUri = result.getUri();\n     } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n       Exception error = result.getError();\n     }\n   }\n }\n ```\n\n### Using View\n2. Add `CropImageView` into your activity\n ```xml\n \u003C!-- Image Cropper fill the remaining available height -->\n \u003Ccom.theartofdev.edmodo.cropper.CropImageView\n   xmlns:custom=\"http:\u002F\u002Fschemas.android.com\u002Fapk\u002Fres-auto\"\n   android:id=\"@+id\u002FcropImageView\"\n   android:layout_width=\"match_parent\"\n   android:layout_height=\"0dp\"\n   android:layout_weight=\"1\"\u002F>\n ```\n\n3. Set image to crop\n ```java\n cropImageView.setImageUriAsync(uri);\n \u002F\u002F or (prefer using uri for performance and better user experience)\n cropImageView.setImageBitmap(bitmap);\n ```\n\n4. Get cropped image\n ```java\n \u002F\u002F subscribe to async event using cropImageView.setOnCropImageCompleteListener(listener)\n cropImageView.getCroppedImageAsync();\n \u002F\u002F or\n Bitmap cropped = cropImageView.getCroppedImage();\n ```\n\n## Features\n- Built-in `CropImageActivity`.\n- Set cropping image as Bitmap, Resource or Android URI (Gallery, Camera, Dropbox, etc.).\n- Image rotation\u002Fflipping during cropping.\n- Auto zoom-in\u002Fout to relevant cropping area.\n- Auto rotate bitmap by image Exif data.\n- Set result image min\u002Fmax limits in pixels.\n- Set initial crop window size\u002Flocation.\n- Request cropped image resize to specific size.\n- Bitmap memory optimization, OOM handling (should never occur)!\n- API Level 14.\n- More..\n \n## Customizations\n- Cropping window shape: Rectangular or Oval (cube\u002Fcircle by fixing aspect ratio).\n- Cropping window aspect ratio: Free, 1:1, 4:3, 16:9 or Custom.\n- Guidelines appearance: Off \u002F Always On \u002F Show on Toch.\n- Cropping window Border line, border corner and guidelines thickness and color.\n- Cropping background color.\n\nFor more information, see the [GitHub Wiki](https:\u002F\u002Fgithub.com\u002FArthurHub\u002FAndroid-Image-Cropper\u002Fwiki). \n\n## Posts\n - [Android cropping image from camera or gallery](http:\u002F\u002Ftheartofdev.com\u002F2015\u002F02\u002F15\u002Fandroid-cropping-image-from-camera-or-gallery\u002F)\n - [Android Image Cropper async support and custom progress UI](http:\u002F\u002Ftheartofdev.com\u002F2016\u002F01\u002F15\u002Fandroid-image-cropper-async-support-and-custom-progress-ui\u002F)\n - [Adding auto-zoom feature to Android-Image-Cropper](https:\u002F\u002Ftheartofdev.com\u002F2016\u002F04\u002F25\u002Fadding-auto-zoom-feature-to-android-image-cropper\u002F)\n\n## Change log\n*2.8.0*\n- Fix crash on Android O (thx @juliooa)\n- Update to support library to AndroidX (thx @mradzinski)\n- Handle failure when selecting non image file (thx @uncledoc)\n- More translations (thx @jkwiecien, @david-serrano)\n\n*2.7.0*\n- Update gradle wrapper to 4.4\n- Update support library to 27.1.1 and set is statically! (thx @androideveloper)\n- Fix NPE in activity creation by tools (thx @unverbraucht)\n- More translations (thx @gwharvey, @dlackty, @JairoGeek, @shaymargolis)\n\nSee [full change log](https:\u002F\u002Fgithub.com\u002FArthurHub\u002FAndroid-Image-Cropper\u002Fwiki\u002FChange-Log).\n\n## License\nOriginally forked from [edmodo\u002Fcropper](https:\u002F\u002Fgithub.com\u002Fedmodo\u002Fcropper).\n\nCopyright 2016, Arthur Teplitzki, 2013, Edmodo, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this work except in compliance with the   License.\nYou may obtain a copy of the License in the LICENSE file, or at:\n\n  http:\u002F\u002Fwww.apache.org\u002Flicenses\u002FLICENSE-2.0\n\nUnless 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.\n","Android-Image-Cropper 是一个针对 Android 平台的图片裁剪库，特别优化了相机和相册的使用体验。它具备强大的功能如缩放、旋转以及支持多种来源的图片处理，并且用户可以自定义裁剪形状、限制条件及样式。该库通过异步操作、采样技术和矩阵运算等手段进行了性能优化，使得其在保持高效的同时也易于集成与使用。适用于需要提供图片编辑或个性化设置功能的移动应用开发场景中，尤其是在那些要求用户能够上传并调整个人头像或其他展示图片的应用里表现尤为出色。请注意，当前项目已不再维护，建议开发者转而采用 CanHub 的 fork 版本以获得更好的支持。",2,"2026-06-11 02:59:33","top_language"]