⚠️ This repository has been archived and is no longer accepting contributions ⚠️
Fixed viewport image cropping library for Android with built-in support for Picasso, Glide or Universal Image Loader.
See scissors-sample.
<com.lyft.android.scissors.CropView
android:id="@+id/crop_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cropviewViewportRatio="1"
/>
cropView.setImageBitmap(someBitmap);Bitmap croppedBitmap = cropView.crop(); to obtain a cropped Bitmap to match viewport dimensionsScissors comes with handy extensions which help with common tasks like:
To load a Bitmap automatically with Picasso, Glide or Universal Image Loader into CropView use as follows:
cropView.extensions()
.load(galleryUri);
To save a cropped Bitmap into a File use as follows:
cropView.extensions()
.crop()
.quality(87)
.format(PNG)
.into(croppedFile))
For questions please use github issues. Mark question issue with "question" label.
compile 'com.lyft:scissors:1.1.1'
Snapshots of development version are available in Sonatype's snapshots repository.
Copyright (C) 2015 Lyft, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License 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.
Please see CONTRIBUTING.md.
Overall
Maintained
Code review
Maven
Latest release
Releases this year
261 followers · starred Nov 2015
2,620 followers · starred Nov 2015
145 followers · starred Nov 2015
449 followers · starred Nov 2015
⚠️ This repository has been archived and is no longer accepting contributions ⚠️
Fixed viewport image cropping library for Android with built-in support for Picasso, Glide or Universal Image Loader.
See scissors-sample.
<com.lyft.android.scissors.CropView
android:id="@+id/crop_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cropviewViewportRatio="1"
/>
cropView.setImageBitmap(someBitmap);Bitmap croppedBitmap = cropView.crop(); to obtain a cropped Bitmap to match viewport dimensionsScissors comes with handy extensions which help with common tasks like:
To load a Bitmap automatically with Picasso, Glide or Universal Image Loader into CropView use as follows:
cropView.extensions()
.load(galleryUri);
To save a cropped Bitmap into a File use as follows:
cropView.extensions()
.crop()
.quality(87)
.format(PNG)
.into(croppedFile))
For questions please use github issues. Mark question issue with "question" label.
compile 'com.lyft:scissors:1.1.1'
Snapshots of development version are available in Sonatype's snapshots repository.
Copyright (C) 2015 Lyft, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License 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.
Please see CONTRIBUTING.md.
Overall
Maintained
Code review
Maven
Latest release
Releases this year
261 followers · starred Nov 2015
2,620 followers · starred Nov 2015
145 followers · starred Nov 2015
449 followers · starred Nov 2015