coil-kt/coil

Scaled down images look excessively pixelated on desktop

Open

#2883 opened on Mar 9, 2025

View on GitHub
 (8 comments) (3 reactions) (0 assignees)Kotlin (11,779 stars) (757 forks)batch import
help wanted

Description

Describe the bug

Large AsyncImages scaled down (compared to their original size) look excessively pixelated (on at least) desktop. This doesn't seem to be an issue on Android, so I'm guessing this is not intended behaviour? I can only test these two platforms right now, so it is possible other platforms are also affected.

The effect is most noticeable with screenshots that contain lots of text, as the text becomes completely distorted and unreadable.

To Reproduce

Try to load a high-resolution image with medium-to-small text on it, as the issue is most apparent on images of this type, (e.g. a screenshot of an IDE window) and try to scale it down.

Version v3.1.0

Samples

Original image:

Image

Android scaled down a lot (this is still just about readable!):

Image

Desktop scaled down slightly (already falling apart):

Image

Desktop scaled down a lot (unreadable):

Image

I considered that this is simply due to the higher pixel density of a phone's screen, but the issue is also not reproducible in the emulator so I'm not sure anymore. 😅

Contributor guide