```val imageUrl = "<https://via.placeholder.com/30...
# multiplatform
m
Copy code
val imageUrl = "<https://via.placeholder.com/300>"

KamelImage(
    resource = asyncPainterResource(  imageUrl),
    contentDescription = null,
    modifier = Modifier.size(300.dp),
    onLoading = {
        Box(
            modifier = Modifier
                .size(300.dp)
                .background(Color.LightGray) 
        )
    },
    onFailure = { throwable ->
        println("Image loading failed: ${throwable.message}")
        Box(
            modifier = Modifier
                .size(300.dp)
                .background(Color.Red)
        )
    }
)
Hello Am trying to display an image from url in kotlin wasm I have implemented this two dependencies
Copy code
implementation("media.kamel:kamel-image-wasm-js:1.0.0-beta.7")
implementation("media.kamel:kamel-decoder-image-bitmap-wasm-js:1.0.0-beta.7")
but getting an error Unable to find a decoder for class ImageBitmap What's the best approach of displaying image using url or another dependency I can try?
134 Views