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.

Cropping issue on some devices

See original GitHub issue
  • Lib Version 3.3.6, 4.3.1

Describe the bug Cropping flow fails in some cases after taking a photo on some devices. We have reproduced it on Samsung devices. Usually it’s reproduced if a user switches cameras and then takes a photo, but sometimes we get the same result with no camera switch. In our app with the lib integrated the following result is logged - cropping has been cancelled by the user

To Reproduce Steps to reproduce the behavior:

  1. Open the sample app on a Samsung device. The issue is definitely reproduced on Samsung S21+ with Android 12 here - Samsung Remote Test Lab
  2. Click on Sample Calling CropImage -> Call Liabrary Directly Without URI -> Camera -> switch cameras -> take a photo and press OK

Expected behavior Correct cropping flow

Media

https://user-images.githubusercontent.com/85189211/180975228-f1a7de8e-ba75-4518-abe4-3a588a840930.mp4

Smartphone (please complete the following information):

  • Device: [Samsung S21/S21+]
  • OS: [Android 12]

Additional context It seems like the context for getting a photo image doesn’t survive in most of the cases on Samsung devices. I have no such issue on Pixel 4A.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
Canatocommented, Jul 29, 2022

Hey @ksk-tech not yet. I started a new job as manager on the last weeks

Basically, my time has been reduced a lot. But I didn’t forget this. I just need to find time to make this volunteer work ^^

Sad to say, but capitalism force me to focus where the money comes in hahahaha

1reaction
Canatocommented, Jul 27, 2022

Back from holidays, will check ASAP

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Black Screen while cropping in some devices. #812
For some specific devices , when we change the crop window area then we see a black screen sometimes, also when we start...
Read more >
Fix Image Crop Issue on Android Devices - Squarespace Forum
I've recently launched this website, and have been informed that some of the images are cropping on Android devices (see below screenshot).
Read more >
Android bug: Crop intent works on some devices
1 Answer 1 ... The com.android.camera.action.CROP is part of the internal API so it is not guaranteed to be supported by all Android...
Read more >
Cropping pictures does not change the siz… - Apple Community
I was trying to free up space by cropping some of the pics, since many have just the key point of interest in...
Read more >
Fix cropped and zoomed in screen - Microsoft Community
I'm Jerico T., one of the Independent Advisor and a fellow Windows 10 user like you. I understand that you're having some issues...
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