bumptech / bumptech/glide

Prevent upscaling

Open
#4,649 1 comment 0 reactions 0 assignees View on GitHub
question
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, it's a sandbox project to isolate the issue.

**Device/Android Version**: Google Pixel 3XL, Android 11

**Issue details / Repro steps / Use case background**:
What I want sounds rather simple. I don't want images to get upscaled. I'm fine with downscaling which is an obvious thing to expect with such a library but if the image is too small, I don't want it upscaled to fit the bounds of the `ImageView` since it looks pixelated.

**Glide load line / `GlideModule` (if any) / list Adapter code (if any)**:
```java
Glide.with(this)
.load(URL)
.downsample(DownsampleStrategy.CENTER_INSIDE)
.into(imageView)
```

**Layout XML**:
```xml

```

**Stack trace / LogCat**:
N/A

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.