wasabeef / picasso-transformations

An Android transformation library providing a variety of image transformations for Picasso
Apache License 2.0
1.69k stars 238 forks source link

BlurTransformation makes image invisible #6

Open vivekkartha opened 9 years ago

vivekkartha commented 9 years ago

Whenever I apply BlurTransformation with 10px or any px value for that matter. The image just becomes invisible. Anyone got a solution for this?

chrismeats commented 9 years ago

@vivekkartha I had the same issue. Finally figured out that I had to set renderscriptSupportModeEnabled true in my build.gradle file under defaultConfig. After that it worked great.

qky1412 commented 8 years ago

@chrismeats can u tell me how? 'Cause for me it crash every time and telling me Couldn't load libRSSupportIO.so, but the simulator works fine. pls.

chrismeats commented 8 years ago

@qky1412 this is what I have for my android config in my build.gradle file. Hope it helps.

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "co.cht.tourzy"
        minSdkVersion 14
        targetSdkVersion 21
        versionCode 2
        versionName "1.1"
        renderscriptSupportModeEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
qky1412 commented 8 years ago

@chrismeats it works! Thank you very much. I wonder why we don't need specific renderscriptTargetApi.

xerex09 commented 8 years ago

@qky1412 Because we are avoiding using android.support.v8.renderscript.* Renderscript Support Library instead we are using internal/fastblur