Questions tagged [coil]

For questions about the Coil Android library, not generic coils

Coil is a fast, lightweight, easy to use and modern image loading library for Android backed by Kotlin Coroutines.
Coil is an acronym for: Coroutine Image Loader.
The library is currently developed and manteined by Instacart, and is under the Apache License, Version 2.0.

References

148 questions
0
votes
1 answer

Is it ok to simply cover a CircularProgressIndicator with an Image in compose?

I am showing an Image() loaded from a URL in compose which works great. While I am getting the image from the server I want the user to see a circular spinner so that he knows that something is coming. After the image is loaded the spinner should be…
quealegriamasalegre
  • 2,887
  • 1
  • 13
  • 35
0
votes
1 answer

How to use high resolution(4k) image in android app

I am getting high-resolution images from an API and displaying them on my app. I am not familiar with dealing with high-resolution images or images in general so I was surprised when I saw the images being blurry on my app. 1)What can be done to…
0
votes
1 answer

How to animate an image property

I want to load image with saturation animation. Here is code useful by Glide,ImageView and ValueAnimator. Glide.with(imageView) .asBitmap() .load(url) .transition(BitmapTransitionOptions.withCrossFade(1000)) …
Mr.Bendan
  • 3
  • 2
0
votes
1 answer

Coil does not load video frame in Image

I'm trying to load video frame from video, provided in previewUrl = "https://<..>.mp4", but nothings happens. I've tried removing/changing fetcher, modifier, frameMillis, but still nothing. My previewUrl is valid and I can open it on my PC, it's…
Captain Jacky
  • 888
  • 1
  • 12
  • 26
0
votes
3 answers

How to modify color and size for Coil image placeholder in Jetpack Compose

I'm using Coil 1.3.2 in Jetpack Compose and I have an Image like this Image( painter = rememberImagePainter( data = imageUrl, onExecute = { _, _ -> true }, builder = { placeholder(R.drawable.icon) } …
0
votes
1 answer

Coil using jetpack compose

Am trying to load multiple images inside a LazyRow composable , the painter state is always giving me an empty state, i dont know what am missing. The code of the composable fun NetworkImage( url: String, contentDescription: String = "", …
baadr qaaba
  • 21
  • 1
  • 5
0
votes
1 answer

How to make this custom for Image using Coil

I'm using coil:0.10.0 in my project but it's not as expected, I want to change the image's background val painter = rememberCoilPainter( fadeIn = true, request = ImageRequest.Builder(LocalContext.current) …
Lang Minh Nguyên
  • 3,648
  • 4
  • 10
  • 31
0
votes
2 answers

How to draw border to an imageview with Coil in Android?

I am using 'Coil' to have circular imageview. I want to draw a circular border to this circular imageview. How to do it with using Coil? This is where I load the image: binding.imageviewFaceDetectionSelfieCircle.load(R.drawable.ic_avatar) { …
0
votes
1 answer

Coil is not working with big images in Android 4.4

While I was working with Coil Library I tested the old version of Android and tried to open page where the Coil library is in use. It showed the empty images. Then I tried a different type of images (300x300, 500x300 and etc.) after all I found that…
Okonov Urmat
  • 319
  • 2
  • 8
0
votes
1 answer

Picasso and Coil inconsistency in image sizing?

The first screenshot is with Picasso, the second one with Coil (both in latest versions). Any idea why is this happening? Picasso: fit().centerInside() Coil: scale(Scale.FILL).crossfade(true) (I tried with FIT also, same results) ImageView:…
rtsketo
  • 1,168
  • 11
  • 18
0
votes
1 answer

Can coil transform images when creating notifications?

I'm trying to crop an image when building a notification received by the server. At this moment I only have the image url. Here's what I've tried: Coil.load(context, remoteMessage.getImageUrl()) { target { image -> …
douglas.iacovelli
  • 1,346
  • 2
  • 14
  • 12
-1
votes
1 answer

Is it OK to load an image from the Fragment/Acvtivity when using Coil?

Question 1: When I load an image using the Coil library, I do it in the Fragment or Activity: imageView.load("https://example.com/image.jpg"). Is it OK to use the internet connection (method load()) from the UI? Doesn't it break the app…
-1
votes
1 answer

Gradle dependency problem in Android Studio

Can't Sync Gradle, when trying to make Coil implementation. dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.6.0' implementation…
1 2 3
9
10