SmartPaperScan icon indicating copy to clipboard operation
SmartPaperScan copied to clipboard

Cannot show original photo after shot

Open muslimmuda15 opened this issue 4 years ago • 1 comments

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

muslimmuda15 avatar Sep 07 '21 10:09 muslimmuda15

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.

https://user-images.githubusercontent.com/40290141/184821125-f2501540-63cc-4bbb-b2c5-8723637a1599.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));

PawelZaw avatar Aug 16 '22 07:08 PawelZaw