bumptech / bumptech/glide

circleCrop not working on drawable resource

Open
#4,684 0 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

**Glide Version**: 4.11.0

**Integration libraries**: No

**Device/Android Version**: Emulator API 21 and 22

**Issue details / Repro steps / Use case background**: `circleCrop()` seems to work when images are from the server, but not when using local drawable resource.

**Glide load line / `GlideModule` (if any) / list Adapter code (if any)**:
```java

//Working
GlideApp.with(this)
.load("some image url")
.placeholder(R.mipmap.ic_launcher_round)
.error(R.mipmap.ic_launcher_round)
.circleCrop()
.into(assetIcon)

//Not Working
Glide.with(this)
.load(R.drawable.ic_camera)
.circleCrop()
.into(userImage)

```

**Layout XML**:
```xml

//Layout on first sample

//Layout on second sample

```

```ruby
paste stack trace and/or log here
```

![image](https://user-images.githubusercontent.com/38008900/140781484-e769fffa-7feb-4040-aefd-c11c0599dead.png)

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.