Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coil3 is not loading svg images from network #2768

Closed
sureshmaidaragi1919 opened this issue Dec 31, 2024 · 1 comment
Closed

Coil3 is not loading svg images from network #2768

sureshmaidaragi1919 opened this issue Dec 31, 2024 · 1 comment

Comments

@sureshmaidaragi1919
Copy link

sureshmaidaragi1919 commented Dec 31, 2024

Describe the bug
I am using AsyncImage to load svg image attached https://d2bps9p1kiy4ka.cloudfront.net/5b09189f7285894d9130ccd0/c0b623a3-418d-4272-a650-a43ff9a28e59.svg

but its not loading, can help to check what im missing
To Reproduce

AsyncImage(
      model = ImageRequest.Builder(LocalContext.current)
          .data(url)
          .build(),
      contentDescription = contentDescription,
      modifier = modifier
          .fillMaxWidth()
          .background(LocalThemeColors.current.greyPaletteColors.white),
      placeholder = null,
      onLoading = null,
      onSuccess = { onSuccess() },
      onError = { errorPainter },
      alignment = Alignment.Center,
      contentScale = contentScale
  )
  
  

Added dependencies in android Main as shown below

implementation(libs.coil)
               implementation(libs.coil.compose)
               implementation(libs.ktor.client.android)
               implementation(libs.ktor.client.core)
               implementation(libs.coil.mp)

Version
Coil3 and ktorVersion = "2.3.11"

/libs

coil = { module = "io.coil-kt:coil", version.ref = "coilVersion" }
coil-gif = { module = "io.coil-kt:coil-gif", version.ref = "coilVersionGif" }
coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coilVersion" }

ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktorVersion" }
ktor-client-android = { module = "io.ktor:ktor-client-android", version.ref = "ktorVersion" }
@colinrtwhite
Copy link
Member

colinrtwhite commented Dec 31, 2024

#2634

@colinrtwhite colinrtwhite closed this as not planned Won't fix, can't repro, duplicate, stale Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants