glide-transformations icon indicating copy to clipboard operation
glide-transformations copied to clipboard

Increasing sampling causes a decrease in the image size

Open Coehill opened this issue 7 years ago • 1 comments

When I'm blurring, if I use any other sampling value other than 1, it causes the image to become smaller: .apply(RequestOptions.bitmapTransform(new BlurTransformation(25, 1)) Is there a way to apply a higher sampling value while maintaining the image size?

Coehill avatar Apr 28 '18 19:04 Coehill

@Coehill

Usually, the radius of some Blur is <=25, so we have to use sampling and than 2 or more.

https://developer.android.com/reference/android/renderscript/ScriptIntrinsicBlur.html#setRadius(float)

wasabeef avatar Apr 30 '18 08:04 wasabeef