steelkiwi / cropiwa

📐 Configurable Custom Crop widget for Android

Home Page:http://steelkiwi.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bitmap dimensions exceeded max android texture size

kkalisz opened this issue · comments

commented

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.