[BUG] - ScaleType Problem
See original GitHub issue🚨🚨 Before open the ticket please check if you can reproduce the bug in the sample code
- Lib Version 3.3.5
Describe the bug I think that scale type is not working (Or I’m doing something wrong). When I have CropImageView with ratio for example 3x5 and I want to crop square image and im setting ScaleType to CENTER_CROP I would expect that preview of image will be filled (like in android ImageView).
To Reproduce Steps to reproduce the behavior:
- In extended_activity.xml add
app:cropScaleType="centerCrop"
to<com.canhub.cropper.CropImageView
- Run sample app
- click “SAMPLE OF CUSTOM ACTIVITY”
- Pick/take square photo
- Go to crop screen
- CropImageView is not filled
Expected behavior Image should fill whole CropImageView
Media
Smartphone (please complete the following information):
- Device: xiaomi mi a 2 lite
- OS: Android 9
Additional context But maybe Im doing something wrong 😄
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Scale Bug Info: Learn About Scale Insect Control
Scale is a problem with many houseplants. Scale insects suck sap from plants, robbing them of essential nutrients. Let's learn more about ...
Read more >How to Get Rid of Scale on Plants For Good in 5 Simple Steps
Scale on plants are sap-sucking pests that attach themselves to leaves, stems, and fruits of host plants. This guide shares 5 steps to...
Read more >How to Get Rid of Scale Insects - The Spruce
1. Pruning infected branches is often the easiest and surest solution if you catch the infestation while it is still light. Inspect the...
Read more >ImageView's scale type unexpected behavior - Stack Overflow
The problem begins when images are too small (for example, 50x50 px) and it doesn't work as expected on all devices. The image...
Read more >Scaling not working as expected · Discussion #921 · coil-kt/coil
I'm migrating from Glide to Coil and have an issue with image scaling. I'm used to set the scale type in code. So...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Canato @Marchuck this is actually not the only part of code that is missing.
The thing is that together with @Marchuck we were using forked version of the old library and difference mentioned by him is actually a fix that we have implemented on our own (and never shared 🤦)
I’ll open a PR for it.
Thanks @scana =D