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 too large to be uploaded into a texture #172

Closed
mrhuo opened this issue Aug 9, 2016 · 11 comments
Closed

Bitmap too large to be uploaded into a texture #172

mrhuo opened this issue Aug 9, 2016 · 11 comments

Comments

@mrhuo
Copy link

mrhuo commented Aug 9, 2016

When I take a picture use UCrop to crop, but I get this Warning.

W/OpenGLRenderer: Bitmap too large to be uploaded into a texture (3120x4160, max=4096x4096)

I think the code does not handle the acceleration of the hardware to open the pixel limit

@bigggge
Copy link

bigggge commented Aug 11, 2016

<activity android:name="com.yalantis.ucrop.UCropActivity" android:hardwareAccelerated="false" android:screenOrientation="portrait" android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>

@mrhuo
Copy link
Author

mrhuo commented Aug 11, 2016

this can't help me, the cropView is blank, no image.

@mrhuo
Copy link
Author

mrhuo commented Aug 11, 2016

The screenshot like this:
screenshot_2016-08-11-14-27-15-302_cn zhiweikeji

@mrhuo
Copy link
Author

mrhuo commented Aug 11, 2016

@bigggge I think you need fix the code...

@bigggge
Copy link

bigggge commented Aug 11, 2016

Sorry,i cant help you. But android:hardwareAccelerated="false" is worked for me .You can see #121

@mrhuo
Copy link
Author

mrhuo commented Aug 11, 2016

@bigggge android:hardwareAccelerated="false" can't work form me.but Thank you very much,

@milan-milojevic
Copy link

The proper solution is to use UCrop.Options setMaxBitmapSize() to make sure the OpenGLRenderer texture pixel limit is not exceeded

@mrhuo
Copy link
Author

mrhuo commented Aug 19, 2016

@milan-milojevic Oh, thank you , I try

@shliama
Copy link
Contributor

shliama commented Sep 8, 2016

Please check the latest uCrop version :octocat:
Now you can choose between:

Lightweight general solution
compile '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'

@TeeRawk
Copy link
Contributor

TeeRawk commented Mar 13, 2017

resolved

@TeeRawk TeeRawk closed this as completed Mar 13, 2017
@sharmavishal914
Copy link

Same issue coming for me

image

I am using com.github.yalantis:ucrop:2.2.6

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

6 participants