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

Bitmap dimensions exceeded max android texture size #23

Open
kkalisz opened this issue Jul 15, 2017 · 0 comments · May be fixed by #24
Open

Bitmap dimensions exceeded max android texture size #23

kkalisz opened this issue Jul 15, 2017 · 0 comments · May be fixed by #24

Comments

@kkalisz
Copy link

kkalisz commented Jul 15, 2017

Different android devices have various max texture dimension.

On some configurations when bitmap dimension exceeded this limit no image is displayed.

For example my Smaung galaxy S5 has max texture size: 4096 px
Full screen CropImageView has dimensions: 1080x1848 px
Image file is: 5312x2988 px

As result loaded bitmap has size 5312x2988 px, width is larger than max texture size and no image is displayed.

Increasing inSmapleSize when loading bitmap to met max texture requiremnts should fix this issue.
I will provide pull request.

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

Successfully merging a pull request may close this issue.

1 participant