question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:

  1. In extended_activity.xml add app:cropScaleType="centerCrop" to <com.canhub.cropper.CropImageView
  2. Run sample app
  3. click “SAMPLE OF CUSTOM ACTIVITY”
  4. Pick/take square photo
  5. Go to crop screen
  6. 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:closed
  • Created 2 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
scanacommented, Mar 3, 2022

@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.

0reactions
Canatocommented, Mar 3, 2022

Thanks @scana =D

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found