bumptech / bumptech/glide

Image with gradient background cannot show correctly by Glide loading.

Open
#4,671 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.12.0

**Integration libraries**: no

**Device/Android Version**: Google Pixel 4 XL, Android 10.

**Issue details / Repro steps / Use case background**:
When an image with a gradient background was loaded by Glide, the background could not show correctly.
If I directly set the drawable to the image view, the image can be shown correctly.

The image set by `imageView.setImageResource(R.drawable.test)`is:
Screen Shot 2021-10-21 at 15 22 02

The Glide loaded image is:
Screen Shot 2021-10-21 at 15 18 36

**Glide load line / `GlideModule` (if any) / list Adapter code (if any)**:
```Kotlin
Glide
.with(this) // here `this` is an activity
.load(R.drawable.test)
.into(findViewById(R.id.image_view))
```

**Layout XML**:
```xml

```

**Stack trace / LogCat**:

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Glide.load(R.drawable.test) call into the ImageView described in the issue, using the supplied layout and comparing it with direct drawable assignment on Android 10. Investigate why the gradient renders differently; done means the Glide-loaded image displays the gradient correctly without changing the intended ImageView usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.