Questions tagged [coil]
For questions about the Coil Android library, not generic coils
coil
187
questions
1
vote
1
answer
48
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,
...
-1
votes
0
answers
56
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-...
0
votes
0
answers
40
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 ...
0
votes
0
answers
30
views
I try to build imageloader extension for mit app inventor using coil library, but i got compiling error
here is my complete project details.
coil image loader kotlin class.
package com.bibek.coilimageloader
import android.widget.ImageView
import coil.ImageLoader
import coil.request.CachePolicy
import ...
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/...
1
vote
2
answers
140
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,
...
0
votes
0
answers
86
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 ...
0
votes
0
answers
62
views
Image loaded in KMP Desktop is blurry using coil
I'm currently learning KMP with Desktop and Android platform, and this is my first desktop development. And, i run into problem where an image loaded on desktop is in bad quality compared to in ...
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 &...
1
vote
1
answer
167
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 ...
0
votes
1
answer
83
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 { ...
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 ...
0
votes
1
answer
53
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.
2
votes
1
answer
265
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 = &...
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 ...