Comments (3)
Any ratio is already supported, all you have to do is specify cropviewViewportHeightRatio
in your layout as follows:
16_9 = 9/16 = cropviewViewportHeightRatio="0.5625"
4_3 = 3/4 = cropviewViewportHeightRatio="0.75"
3_4 = 4/3 = cropviewViewportHeightRatio="1.33"
I guess we could formalize most common ratios as enum, circle could be also supported.
from scissors.
@NicodeLee We don't have plans for circle cropping. It's usually better to always to do square cropping and then do circle transformation only when you display image in ui. (Primary reason is that in different parts of the app you could display same image in square and circle format)
If you want to give user feeling that he crops circle just use circle transparent overlay on the top of crop view.
from scissors.
@lexer @eveliotc Thanks for your reply.
from scissors.
Related Issues (20)
- Can I use scissors library to crop an image taken with my camera? <question> HOT 1
- How to use CropView with Fresco? HOT 1
- GlideBitmapLoader.createUsing uses cropView size
- GlideBitmapLoader.createUsing uses cropView's size while it might not be laid out HOT 1
- Question: How come CropViewExtensions pickUsing Fragment, is not using the support fragment? HOT 2
- Is it possible to remove scaling ?
- Library fails loading images when using Glide v4 and causes exception.
- Crop to File, cannot access CropViewExtensions HOT 6
- Can't import HOT 1
- Can I get the cropped offsets? HOT 5
- Fresco Integration HOT 1
- Scissors 2 is not available on maven HOT 1
- Extensions are not compatible in Kotlin HOT 1
- Scissors 2 not published, support for RxJava2 HOT 1
- Exception with glide HOT 1
- Exception with Picasso latest (2.71828) HOT 3
- Error using with Picasso 2.5.2 HOT 1
- AndroidX HOT 1
- How to check if image has been cropped/modified ? HOT 1
- Select image not load into crop view HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scissors.