coil-kt/coil

Scaled down images look excessively pixelated on desktop

Open

#2,883 建立於 2025年3月9日

在 GitHub 查看
 (8 留言) (3 反應) (0 負責人)Kotlin (757 fork)batch import
help wanted

倉庫指標

Star
 (11,779 star)
PR 合併指標
 (平均合併 20小時 14分鐘) (30 天內合併 28 個 PR)

描述

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. 😅

貢獻者指南