coil-kt / coil

Image loading for Android and Compose Multiplatform.

Home Page:https://coil-kt.github.io/coil/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some webp images not work in vm

devzwy opened this issue · comments

commented

Describe the bug
It's ok of phone,but emulator is not work~

eg: http://qncdn.pupu.chat/system/gifts/giftzhenzhu.webp
vm0
DINGTALK_IM_2429279555 JPG

`
this.load(
u, ImageLoader.Builder(this.context)
.components {
if (Build.VERSION.SDK_INT >= 28) {
add(ImageDecoderDecoder.Factory())
} else {
add(GifDecoder.Factory())
}
add(SvgDecoder.Factory())
// add(VideoFrameDecoder.Factory())
}
.crossfade(true)
// .diskCache(
// DiskCache.Builder()
// .directory(appContext.cacheDir)
// .build()
// )
.build()
)
{
if (isUseTranDefaultImg == true) {
placeholder(view.drawable)
} else {
placeholder(R.mipmap.defulat_4x4)
}

        }

`

This is likely an emulator config-specific issue as it works in my emulator. It may also have to do with your URL being non-HTTPS.