-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 too large~ #121
Comments
Thanks for the issue. I've added fix and it will be available soon in next library update |
Any update on this? |
It should be fixed in 2.1.1. If you can reproduce it with the latest version, please attach image and device info so I can reproduce. |
@shliama I am able to reprodue this issue with the sample(com.yalantis.ucrop.sample) on a M4 LTE device. Oops, I have problem to upload the images to s3 (blocked by the Great Fire Wall of China), I'll have a try later... |
@shliama are you able to reproduce using my test photo? Please let me know if I didn't using uCrop the right way. |
android:hardwareAccelerated="false" or Canvas canvas = new Canvas(); |
@swepthong if (bitmap.getWidth() > GL10.GL_MAX_TEXTURE_SIZE || bitmap.getHeight() > GL10.GL_MAX_TEXTURE_SIZE) {
cv.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
} |
W/OpenGLRenderer: Bitmap too large to be uploaded into a texture (4128x2322, max=4096x4096) compile 'com.yalantis:ucrop:2.1.2' |
this is useful |
X |
The proper solution is to use UCrop.Options setMaxBitmapSize() to make sure the OpenGLRenderer texture pixel limit is not exceeded |
Please check the latest uCrop version Lightweight general solutioncompile 'com.yalantis:ucrop:2.2.0' Get power of the native code to preserve image quality (+ about 1.5 MB to an apk size)compile 'com.yalantis:ucrop:2.2.0-native' |
`OpenGLRenderer: Bitmap too large to be uploaded into a texture (3120x4160, max=4096x4096)
05-18 15:54:25.778 8210-8236/com.yalantis.ucrop.sample W/OpenGLRenderer: Bitmap too large to be uploaded into a texture (3120x4160, max=4096x4096)
05-18 15:54:25.779 8210-8236/com.yalantis.ucrop.sample W/OpenGLRenderer: Bitmap too large to be uploaded into a texture (3120x4160, max=4096x4096)
05-18 15:54:25.793 8210-8236/com.yalantis.ucrop.sample W/OpenGLRenderer: Bitmap too large to be uploaded into a texture (3120x4160, max=4096x4096)
05-18 15:54:25.794 8210-8236/com.yalantis.ucrop.sample W/OpenGLRenderer: Bitmap too large to be uploaded into a texture (3120x4160, max=4096x4096)
05-18 15:54:25.794 8210-8236/com.yalantis.ucrop.sample W/OpenGLRenderer: Bitmap too large to be uploaded into a texture (3120x4160, max=4096x4096)`
The text was updated successfully, but these errors were encountered: