bumptech / bumptech/glide

Rounded corners do not match corners in the shape

Open
#4,638 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

Hello.

If I don't load the source to the ImageView with Glide, I see corners are matched each other (see screenshot 1)

![image](https://user-images.githubusercontent.com/8686389/133237290-25a9b06a-404f-42b6-bb06-2432c2987c07.png)

But when I using

```java
Glide.with(mViewImage.context)
.load(movie.coverUrl)
.transform(CenterCrop(), RoundedCorners(roundingRadius)) // in the my case roundingRadius = 6dp
.placeholder(R.drawable.ic_placeholder)
.into(mViewImage)
```

I see in some images the corners don't match (see screenshot 2)

![image](https://user-images.githubusercontent.com/8686389/133237963-2b487707-0253-4913-a241-5d70956be630.png)

I don't understand why this is happening. I will be glad for any help.

**Glide Version**:
4.12.0

**Integration libraries**:
def glideVersion = '4.12.0'
implementation "com.github.bumptech.glide:glide:$glideVersion"
kapt "com.github.bumptech.glide:compiler:$glideVersion"

**Device/Android Version**:
Any device

**Issue details / Repro steps / Use case background**:

**Glide load line / `GlideModule` (if any) / list Adapter code (if any)**:
```java
Glide.with(mViewImage.context)
.load(movie.coverUrl)
.transform(CenterCrop(), RoundedCorners(roundingRadius)) // in the my case roundingRadius = 6dp
.placeholder(R.drawable.ic_placeholder)
.into(mViewImage)
```

**Layout XML**:
```xml

```

XML drawable/quality_tv_background:
```xml



```

XML drawable/shape_rectangle_gray_rounded:
```xml


```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.