{"id":13643853,"url":"https://github.com/lyft/scissors","last_synced_at":"2025-09-28T23:31:58.143Z","repository":{"id":57726354,"uuid":"46388630","full_name":"lyft/scissors","owner":"lyft","description":"✂ Android image cropping library","archived":true,"fork":false,"pushed_at":"2021-10-08T22:16:47.000Z","size":4509,"stargazers_count":1834,"open_issues_count":0,"forks_count":235,"subscribers_count":263,"default_branch":"master","last_synced_at":"2025-01-03T10:51:34.524Z","etag":null,"topics":["lyft"],"latest_commit_sha":null,"homepage":"https://eng.lyft.com/scissors-an-image-cropping-library-for-android-a56369154a19","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lyft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-18T02:06:10.000Z","updated_at":"2024-12-13T10:22:30.000Z","dependencies_parsed_at":"2022-09-13T08:41:15.335Z","dependency_job_id":null,"html_url":"https://github.com/lyft/scissors","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyft%2Fscissors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyft%2Fscissors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyft%2Fscissors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lyft%2Fscissors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lyft","download_url":"https://codeload.github.com/lyft/scissors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234575211,"owners_count":18854924,"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":["lyft"],"created_at":"2024-08-02T01:01:53.810Z","updated_at":"2025-09-28T23:31:52.377Z","avatar_url":"https://github.com/lyft.png","language":"Java","readme":"⚠️ This repository has been archived and is no longer accepting contributions ⚠️\n\n\u003cimg src=\"art/scissors.png\" width=\"256\" align=\"right\" hspace=\"20\" /\u003e\n\nScissors\n=========================\n\nFixed viewport image cropping library for Android with built-in support for [Picasso][picasso], [Glide][glide] or [Universal Image Loader][uil].\n\nUsage\n-----\n\nSee `scissors-sample`.\n\n\u003cimg src=\"art/demo.gif\" width=\"320\" align=\"right\" hspace=\"20\" /\u003e\n\n\n- Include it on your layout:\n```xml\n\u003ccom.lyft.android.scissors.CropView\n    android:id=\"@+id/crop_view\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    app:cropviewViewportRatio=\"1\"\n    /\u003e\n```\n-  Set a Bitmap to be cropped. In example by calling `cropView.setImageBitmap(someBitmap);`\n-  Call `Bitmap croppedBitmap = cropView.crop();` to obtain a cropped Bitmap to match viewport dimensions\n\nExtensions\n----------\nScissors comes with handy extensions which help with common tasks like:\n\n#### Loading a Bitmap\nTo load a Bitmap automatically with [Picasso][picasso], [Glide][glide] or [Universal Image Loader][uil] into `CropView` use as follows:\n\n```java\ncropView.extensions()\n    .load(galleryUri);\n```\n#### Cropping into a File\nTo save a cropped Bitmap into a `File` use as follows:\n\n```java\ncropView.extensions()\n    .crop()\n    .quality(87)\n    .format(PNG)\n    .into(croppedFile))\n```\n\nQuestions\n----------\nFor questions please use github issues. Mark question issue with \"question\" label.\n\nDownload\n--------\n\n```groovy\ncompile 'com.lyft:scissors:1.1.1'\n```\n\nSnapshots of development version are available in [Sonatype's `snapshots` repository][snap].\n\nLicense\n-------\n\n    Copyright (C) 2015 Lyft, Inc.\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\nContributing\n------------\n\nPlease see `CONTRIBUTING.md`.\n\nContributors\n------------\n- [See contributors on GitHub](https://github.com/lyft/scissors/graphs/contributors)\n- [Join us, work for Lyft](https://www.lyft.com/jobs)\n\n [snap]: https://oss.sonatype.org/content/repositories/snapshots/\n [picasso]: https://github.com/square/picasso\n [glide]: https://github.com/bumptech/glide\n [uil]: https://github.com/nostra13/Android-Universal-Image-Loader\n","funding_links":[],"categories":["图片","Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyft%2Fscissors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flyft%2Fscissors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyft%2Fscissors/lists"}