Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot show original photo after shot #24

Open
muslimmuda15 opened this issue Sep 7, 2021 · 1 comment
Open

Cannot show original photo after shot #24

muslimmuda15 opened this issue Sep 7, 2021 · 1 comment

Comments

@muslimmuda15
Copy link

muslimmuda15 commented Sep 7, 2021

Hello, after shot the photo, I got the next activity going to a blank image.

@PawelZaw
Copy link

PawelZaw commented Aug 16, 2022

Hello @KePeng1019,

I have the same issue. I will provide some details to make it easier to locate the problem.

Phone: Samsung SM-J610FN,
Android version: 8.1.0,
Samsung Experience: 9.5;

After taking a photo and entering the photo crop view, the photo is not visible, only the black screen. I attach a video to better illustrate the problem.

The same situation also occurs on older Android versions.

vidma_recorder_16082022_090130.mp4

UPDATE

The problem, which we can find in console: Bitmap too large to be uploaded into a texture (2322x4128, max=4096x4096)

Solution:
Change in file CropPresenter.kt in method onViewsReady(), from:

iCropView.getPaper().setImageBitmap(bitmap)

On:

iCropView.getPaper().setImageBitmap(Bitmap.createScaledBitmap(bitmap, 1080, 1920, false));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants