-
Notifications
You must be signed in to change notification settings - Fork 464
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
Blurring downloaded image #5
Comments
I tried many times to blur image downloaded from internet by use your Blur.fastblur() method, but failed. There is no any error logged, maybe renderscript problem? Later I use your method to decode a picture in local by use BitmapFactory.decodeResource(), that's will be success, rendersript worked well, but when you try blur download bitmap, that's will always be failed, I don't know why, I use Volley's ImageLoader to get bitmap from internet, when picture fetched, there will be a bitmap returned, then you use this bitmap to blur, failed with no luck. I FIGURED OUT WHAT CAUSED THIS!!!! Volley's ImageLoader return bitmap with Bitmap.Config.ARGB_565, but RenderScript expected Bitmap.ARGB_8888, so that's reason why your renderscript blur method crashed. Bitmap bitmap = sentBitmap.copy(sentBitmap.getConfig(), true); maybe you can add some error handle when passed a bitmap is Bitmap.Config.ARGB_565 💯 |
You can blurring downloaded image with picasso.
|
ths ,@devflow |
Dear PomepuyN,
Thanks for your great sample!!
I am trying to add picasso image loader to download any image from flickr.
But seems it is not working with picasso.
Better to share any sample to blurring downloaded images.
Happy New Year!!
The text was updated successfully, but these errors were encountered: