Image Caching with Coil Compose - Everything You Need to Know

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024

Комментарии • 54

  • @skarloti
    @skarloti Год назад +29

    I feel like I've become addicted to your channel. You explain well, you write quickly, you have a good presentation technique, the videos are consistent and do not exceed more than half an hour. I know it's required A lot of work because there is preparation before and processing after, and all that you do is completely free.I believe in Google especially after they released their new phone with the extras I expected and promised. Every morning when I turn on the TV, I look for one of your videos first, because it works well for me to start the day.I wish you success in everything you do.

    • @PhilippLackner
      @PhilippLackner  Год назад +7

      Thanks a lot for the great feedback!!

    • @adetunjiadams6566
      @adetunjiadams6566 9 месяцев назад

      ​@@PhilippLackner
      Thank you very much for all this free resource.
      pls am having issue clicking on the subscribe button to get the pdf (Things not to do in compose)

  • @matheuskloster8730
    @matheuskloster8730 10 месяцев назад +1

    Thanks man, i was struggling trying to load images in composables with only Glide, 4min into your tutorial, i was able to quickly solve my problems

  • @josemanuelfg2409
    @josemanuelfg2409 5 месяцев назад

    I’ve spent this morning 4 hours, fighting with Coil, (it was beating me), and you, with a simple comment , that for you could be vain, I achived to make my app run. Thanks a lot !!

  • @pilgrim0606
    @pilgrim0606 Год назад +2

    Again a Great tutorilal love from turkey 🇹🇷

  • @gauravgooner
    @gauravgooner 10 месяцев назад

    Brilliant video Philippe, you solve the day to day things which are eventually required in an app. great one

  • @bensekyondwa
    @bensekyondwa Год назад +1

    You never disappoint. Thanks

  • @mryup6100
    @mryup6100 Год назад

    This is exactly what I was looking for! Amazing 👏

  • @vinaykumarpatel649
    @vinaykumarpatel649 7 месяцев назад

    This is really cool, coil makes it really easy. I’m interested to know if there is a way to preload images using coil. Thanks for your videos.

  • @imHasanRana
    @imHasanRana Год назад +1

    Hello, Philippe Thanks for the Amazing Tutorial With Very detailed explanation, Could you please make a video about Http response caching using retrofit?❤

  • @kasali310
    @kasali310 Год назад +1

    Great video! I'm wondering how to explain clear the stuff. What is you method to understand things faster ? Could you make a video about that?Big thanks 👍

  • @andrewizquierdo5944
    @andrewizquierdo5944 3 месяца назад

    Thanks for the video. Great explanation as always! Curious if it's a common pattern to programattically clear some cache for the user on their behalf, instead of them having to do it themselves. Let's say we are building a social media like app with an activity feed, that user is going to scroll through many posts and might not ever see the same images that they saw last week, so it would be nice if we can somehow clear that cache from last week's on behalf of the user.

  • @JuanDanielOrnella
    @JuanDanielOrnella 8 месяцев назад

    Amazing bro, thanks for your videos

  • @wouchref2501
    @wouchref2501 Год назад

    Great video! I also wonder how to preload images into the cache

  • @AlexanderParphenuyk
    @AlexanderParphenuyk 5 месяцев назад

    Hello Phillipp, thanks for amazing explanation. May I ask you if you will have a time to create something similar to cover Coil 3 in KMP context. Thank you!

  • @AldrinHernando
    @AldrinHernando 6 месяцев назад

    Hey Philipp, images only load from disk if airplane mode is on when closing and restarting app. When phone is connected to internet, and restarting app, image will load from network.... why? Defeats the purpose of image caching... is there a solution to this using coil still ?

  • @dat899719
    @dat899719 7 месяцев назад

    Can you create example to use custom fetcher

  • @Kmnaseef
    @Kmnaseef 6 месяцев назад

    Thank you very much bro..

  • @cliffordadoyo9429
    @cliffordadoyo9429 Год назад

    Good explanation

  • @vikashparajuli
    @vikashparajuli 11 месяцев назад

    I have a situation where same URL may provide the different images over the time. I need to set header value as a cache key. How can I do it?

  • @mattn.k
    @mattn.k Год назад

    Bro can you make a video about adding bookmarks & favorites

  • @suvojitpal4875
    @suvojitpal4875 11 месяцев назад

    Very helpful video

  • @omkarpawar1741
    @omkarpawar1741 11 месяцев назад

    Hello, Philippe , can you provide a tutorial for loading images in lazycolumn using coil, especially if we fling the list , it lags a lot, earlier glide had pauseAllRequests which helped a lot how can we achieve this using coil

  • @mustafaammar551
    @mustafaammar551 8 месяцев назад

    Thank you BRO

  • @CryptoCodeZone
    @CryptoCodeZone Год назад

    You can wrap a ByteArray as ByteBuffer and load it

  • @Traffic_Pro
    @Traffic_Pro 21 день назад

    Hi Philip, I think downloading pdf is not working, I have tried a lot but did not get the pdf.

  • @arozendojr
    @arozendojr Год назад

    I would like to see an understanding of compose-ios in Portuguese. It would be a flutter, kotlin for Swift, I didn't quite understand

  • @bharathprakash
    @bharathprakash Год назад

    Could u tell me how we can preload images in coil and store them in disk. Like when the data is always changing or user logged in for the first time, we could notice a performance drop because we should fetch them on scrolling(very bad when user has bad internet connection ) . Is there any way in coil so that we can preload them and save them to disk so that we could improve the performance

  • @gianfigueroa
    @gianfigueroa Год назад

    How long time the disk cache? or never clean disk caching?
    I need save image to offline mode working with disk caching.

  • @djethrak4567
    @djethrak4567 Год назад +2

    Is this better than glide and why ??

    • @PhilippLackner
      @PhilippLackner  Год назад +5

      Theres no Glide implementation for compose atm, but yes also for XML I'd prefer coil, since it's a pure kotlin library and therefore more idiomatic to use

    • @djethrak4567
      @djethrak4567 Год назад +2

      @@PhilippLackner Thanks for the response
      You are the best

  • @ezzeldin101
    @ezzeldin101 Год назад

    Excellent video, Can we use the same library with XML?

  • @atharvapajgade4434
    @atharvapajgade4434 5 дней назад

    Duuuuuuuuuuuude you are fukin awesome
    Thank u so much for this

  • @wondershere2277
    @wondershere2277 Год назад

    Hey Philipp, Is Coil more memory effcient and better performable than Glide?

    • @PhilippLackner
      @PhilippLackner  Год назад

      not necessarily more performant, but nicer to use IMO

  • @tch.777
    @tch.777 Год назад

    Amazing video, amazing detailed explanation, everything is just amazing, number one channel to learn from, thank you!!!🙏

  • @alexnovikov1609
    @alexnovikov1609 Год назад

    Is it possible to use the same approach to cache the video?

  • @neerajverma9226
    @neerajverma9226 8 месяцев назад

    Super!!

  • @sora4222
    @sora4222 Год назад

    How many people read the picture as being from Piratebay?

  • @DeceptiveRealities
    @DeceptiveRealities 9 месяцев назад +1

    It would be great if it worked. Set memory cache to disabled. Disk to enabled. Always loads from the network. Set both enabled. Loads from network and 2nd time from memory (as expected). Shut down app. Restart app. Loads from network. I'm not the only one to observe this, but the standard response is ".respectCacheHeaders(false)". Well, No S Sherlock. It still does the same thing.
    I spent a lot of time on this, but the documentation is very poor (how typical). In the end I found that if you have your own Fetcher (I had my own for S3 access) then the disk caching does not work. It only works for the internal Fetcher. No doubt there is some obscure way to get this working but I'm not spending hours trying to look through the code - write the damn documentation!!!!! In the end after much frustration I used an Interceptor and wrote my own disk caching.
    No doubt a clever chap like Philipp will uncover how to do this with the internal caching. 😄

    • @AldrinHernando
      @AldrinHernando 6 месяцев назад

      Same issue here, images only load from disk if airplane mode is on when closing and restarting app. When phone is connected to internet, and restarting app, image will load from network.... why? Defeats the purpose of image caching... is there a solution to this using coil still ?

  • @elyornasrullayev1630
    @elyornasrullayev1630 Год назад

    cool

  • @dayona2513
    @dayona2513 Год назад

    Second comment

  • @lost-prototype
    @lost-prototype Год назад

    What timing, it's like you read my mind. I've literally been working on this.
    Do you have any guidance when images are short lived presigned URIs from something like S3 or Google Cloud Storage?