Giter VIP home page Giter VIP logo

Comments (16)

giangtranml avatar giangtranml commented on August 18, 2024 7

With gallery, everything is ok. But when i open camera to capture, I have the issue be like this: java.lang.RuntimeException: Failed to load sampled bitmap: file:///storage/emulated/0/MyDir/img_1463316925324.jpg. I'm using newest version

from android-image-cropper.

manojkumar1412 avatar manojkumar1412 commented on August 18, 2024 3

Facing this again in Android 11(SDK 30), similar to reported in #47 (comment)

from android-image-cropper.

deepakbajpay avatar deepakbajpay commented on August 18, 2024 2

I am still facing same issue in V 2.7.0. I am picking image from local storage.

from android-image-cropper.

raimondo avatar raimondo commented on August 18, 2024 2

The issue is coming back again in Android 11 (SDK 30) and seems to affect mostly Samsung phones and Google pixel 3. Non of the above solutions worked! any tips? I am trying to solve for a week now but nothing so far.

from android-image-cropper.

ArthurHub avatar ArthurHub commented on August 18, 2024

wow, looks like it's a bug in Android library 😡
Apparently Android bitmap decoding code is based on Skia library that has known bugs, mostly in BitmapRegionDecoder for specific features and formats.
I will a fallback to BitmapFactory full image decoding and then crop the required region in case BitmapRegionDecoder has failed.

Thank you for reporting this.

p.s. you should always catch exceptions to prevent app crash, show some error message, it is proffered user experience.

from android-image-cropper.

ArthurHub avatar ArthurHub commented on August 18, 2024

added fallback to v1.2.4, let me know if there is still issue

from android-image-cropper.

pedronveloso avatar pedronveloso commented on August 18, 2024

Thank you for the quick update 👍 and the awesome work on this library ;)

from android-image-cropper.

kbajpai avatar kbajpai commented on August 18, 2024

The issue still exists with v2.2.2 when passing URI - http://hostname/images/imageName.jpeg

from android-image-cropper.

ArthurHub avatar ArthurHub commented on August 18, 2024

External URI's (http) are not supported, only URI's to internal Android sources.

from android-image-cropper.

satti8893 avatar satti8893 commented on August 18, 2024

is this solved? im having the same issue using latest build

EDIT: Solved it :D

from android-image-cropper.

abhaymaniyar avatar abhaymaniyar commented on August 18, 2024

Hello @ArthurHub ! I also am this issue even when I am using an internal URI.

from android-image-cropper.

andreififiita avatar andreififiita commented on August 18, 2024

Same here, i am having this issue when trying to set the same Uri twice, when choosing image with Google Photos or in emulator with Files

from android-image-cropper.

prabhakar612 avatar prabhakar612 commented on August 18, 2024

what is the solution for this issue, I'm still facing this issue when picking the image from camera.

from android-image-cropper.

igniushka avatar igniushka commented on August 18, 2024

I found that adding
requestLegacyExternalStorage="true"
to the manifest fixes the issue.

from android-image-cropper.

Abdalnassir avatar Abdalnassir commented on August 18, 2024

The issue is coming back again in Android 11 (SDK 30) and seems to affect mostly Samsung phones and Google pixel 3. Non of the above solutions worked! any tips? I am trying to solve for a week now but nothing so far.

from android-image-cropper.

rajeshvexil avatar rajeshvexil commented on August 18, 2024

I am also facing android 11, 12(sdk 30, 31,32) when image is captured by camera then crop option not coming throw-out exception.

from android-image-cropper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.