diff --git a/transformations/src/main/java/jp/wasabeef/glide/transformations/CropCircleTransformation.java b/transformations/src/main/java/jp/wasabeef/glide/transformations/CropCircleTransformation.java index 5192a6e..2a6fe0a 100644 --- a/transformations/src/main/java/jp/wasabeef/glide/transformations/CropCircleTransformation.java +++ b/transformations/src/main/java/jp/wasabeef/glide/transformations/CropCircleTransformation.java @@ -58,6 +58,7 @@ public class CropCircleTransformation implements Transformation { BitmapShader shader = new BitmapShader(source, BitmapShader.TileMode.CLAMP, BitmapShader.TileMode.CLAMP); if (width != 0 || height != 0) { + // source isn't square, move viewport to center Matrix matrix = new Matrix(); matrix.setTranslate(-width, -height); shader.setLocalMatrix(matrix); diff --git a/transformations/src/main/java/jp/wasabeef/glide/transformations/gpu/KuwaharaFilterTransformation.java b/transformations/src/main/java/jp/wasabeef/glide/transformations/gpu/KuwaharaFilterTransformation.java index 3b956f0..511b7a4 100644 --- a/transformations/src/main/java/jp/wasabeef/glide/transformations/gpu/KuwaharaFilterTransformation.java +++ b/transformations/src/main/java/jp/wasabeef/glide/transformations/gpu/KuwaharaFilterTransformation.java @@ -27,13 +27,7 @@ import jp.co.cyberagent.android.gpuimage.GPUImage; import jp.co.cyberagent.android.gpuimage.GPUImageKuwaharaFilter; /** - * Kuwahara image abstraction, drawn from the work of Kyprianidis, et. al. in their publication - * "Anisotropic Kuwahara Filtering on the GPU" within the GPU Pro collection. This produces an - * oil-painting-like - * image, but it is extremely computationally expensive, so it can take seconds to render a frame - * on - * an iPad 2. - * This might be best used for still images. + * Kuwahara all the colors in the image. * * The radius to sample from when creating the brush-stroke effect, with a default of 25. * The larger the radius, the slower the filter.