panpf / zoomimage

ZoomImage is an gesture zoom viewing of images library specially designed for Compose Multiplatform and Android View. Supported scale, pan, locate, rotation, and super-large image subsampling.
Apache License 2.0
340 stars 19 forks source link

Image not loading #38

Closed andiosdev closed 4 months ago

andiosdev commented 4 months ago

Describe the bug Followed the instruction and yet image is not loading

Affected platforms

Affected components

Sample code SketchZoomAsyncImage( uri = "http://sample.com/huge_world.jpeg", contentDescription = "view image", modifier = Modifier.fillMaxSize(), )

CoilZoomAsyncImage( model = "http://sample.com/huge_world.jpeg", contentDescription = "view image", modifier = Modifier.fillMaxSize(), )

panpf commented 4 months ago

Please post your actual code and error log.

andiosdev commented 4 months ago

I don't think it has error, image just does not load. I used the actual code mentioned and followed the instruction. I'm not sure if I'm missing something.

panpf commented 4 months ago

I want to know from your actual code the url of the image you actually loaded. If it is "http://sample.com/huge_world.jpeg" then there must be something wrong because it is a fake url and it cannot be accessed. I just use it for a demonstration.

andiosdev commented 4 months ago

This is the image url I used: https://cdn.pixabay.com/photo/2016/09/07/10/37/kermit-1651325_1280.jpg

By the way, I was able to load the image using SketchZoomAsyncImage but not with CoilZoomAsyncImage.

panpf commented 4 months ago

For network image issues of coil, please refer to the official documentation of coil, for example: https://coil-kt.github.io/coil/upgrading_to_coil3/#network-images