Skip to main content

All Questions

1 vote
1 answer
49 views

How to measure the size of a Coil AsyncImage with ContentScale.Fit, once loaded?

I have a Coil AsyncImage in Jetpack Compose, as follows: AsyncImage( model = imageRequest, contentDescription = "Ground plan", contentScale = ContentScale.Fit, ...
Peter's user avatar
  • 737
-1 votes
0 answers
60 views

Build Error After Adding io.coil-kt:coil-compose:2.6.0 Dependency in Android Project

I’m encountering a build error after adding the io.coil-kt:coil-compose:2.6.0 dependency to my Android project. Here’s the relevant part of my build.gradle file: implementation("io.coil-kt:coil-...
D.S's user avatar
  • 9
0 votes
0 answers
42 views

Coil AsyncImage not loading https image URL in JetPack Compose Android

I am using AsyncImage to load a public URL "https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/1025.png". It's not loading the image but occupying the space and showing ...
Vinay Chennamolla's user avatar
1 vote
1 answer
61 views

Image is not displayed with Coil's rememberAsyncImagePainter

Image always gives me this error: Error loading image (Ask Gemini) java.lang.IllegalStateException: Unable to create a fetcher that supports: https://my_domain/assets/webdesign/images/flags/world/...
Zvonimir Brleković's user avatar
1 vote
2 answers
144 views

Problem with loading images using coil - Jetpack Compose

I am facing a weird problem when trying to load an image from a URL, when I try the following : val painter1 = rememberAsyncImagePainter( model = targetUrl, ...
Rahul Rawat's user avatar
1 vote
0 answers
89 views

Coil cache image not working in Jetpack Compose

I use OkHttp to cache API request and save result in ViewModel. After that I using AsyncImage with that data saved in that ViewModel. But when I using Coil 2.6.0 to cache, I encounter a problem: When ...
Minh Tiến Đào's user avatar
0 votes
0 answers
28 views

AsyncImage inside Zoomable always filed at first time

I want to load images from the server. Once the images are loaded, I can zoom in and zoom out. The current code is working for some images, but it is not working for most of them end up with an error &...
Ganesh P's user avatar
  • 196
1 vote
1 answer
174 views

How to apply rounded corners to an image loaded with Coil's SubcomposeAsyncImage using ContentScale.Fit in an Android Compose App?

I'm working on an Android Compose app and using Coil's SubcomposeAsyncImage to load images asynchronously. I want to apply rounded corners to these images while ensuring they maintain their aspect ...
JBokMan95's user avatar
  • 179
0 votes
1 answer
85 views

Save edited image to storage in compose coil

I want to rotate and zoom an image with sliders and save the edited image to storage in Android how can I do it? Please let me know if this solution is not suitable. var sliderRotation by remember { ...
Saeed Noshadi's user avatar
0 votes
1 answer
59 views

Problem loading file path (image) from room with coil

I have an image taken from CameraX. I wanted to save my image to room but too much problem. So i decided to save my image to cacheDir with a unique name and then save the path to room. The problem is ...
Mehdi.ncb's user avatar
  • 374
0 votes
1 answer
54 views

Image works normally on web browser but can't be displayed on coil compose

I have an image url from edamam api with this url Image URL, the image works just fine on browser but can't be displayed using Coil.
lelestacia's user avatar
2 votes
1 answer
270 views

coil 2.6.0 does not resolve in KMP project

I have a problem in my KMP project. I would like to use coil to render images but I am currently unable to resolve the lib. I added it in the following places: libs.versions.toml: [versions] coil = &...
Bukinski's user avatar
0 votes
0 answers
15 views

How to animate dimensions of Android compose Box based on user sliding a androidx.compose.material.Slider

My current android compose application allows the user to customise the apps icon dimension. The user can slide a Slider between 0.5F to 2.0F to scale the icons, e.g. from half to double the size. to ...
Hector's user avatar
  • 4,846
1 vote
0 answers
46 views

Caching local files in coil

caching Images from Internet is working in coil. Is it possible to cache thumbnails of local files? I am working on a file manager app. every time lazycolumn requests the thumbnail, coil-...
Muhammed naseef Koppilakkal's user avatar
1 vote
1 answer
269 views

How to dynamically resize Image [coil] in Android Compose application

My current Android Compose application allows the user to set the size of app icons using a slider. the slider range is from 0.5 to 2 e.g. allow the user to reduce the icons size between 50% and 200%. ...
Hector's user avatar
  • 4,846

15 30 50 per page
1
2 3 4 5
10