https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
s

spierce7

08/13/2022, 11:25 PM
Is there an image loader yet that people are using for Kotlin Multiplatform?
m

Mitchell Syer

08/14/2022, 12:15 AM
I have been using Kamel but I saw this recently and I may switch to it https://github.com/qdsfdhvh/compose-imageloader/
s

spierce7

08/14/2022, 12:56 AM
@Mitchell Syer Why would you switch to it? How is Kamel lacking?
m

Mitchell Syer

08/14/2022, 1:12 AM
compose-imageloader just seems to have a more advanced and and open api. Kamel feels pretty simple but also very restricted
s

spierce7

08/14/2022, 1:13 AM
Open API?
m

Mitchell Syer

08/14/2022, 1:13 AM
I mean like there are more ways to do something. For one the way Kamel cache's things is pretty static and you cant really configure it much, while compose-imageloader has a whole api for that
i

itnoles

08/14/2022, 3:32 AM
it seems they are ktor wrapper for http requests with caching
x

xxfast

08/15/2022, 3:01 AM
Been using Kamel and it is working great 👍
d

Dragos Rachieru

08/25/2022, 7:46 AM
You can also check my library, it's pretty similar to kamel, but has support for file caching I haven't worked on it for a long time tho. https://github.com/dragossusi/image-loader
s

spierce7

08/25/2022, 4:47 PM
@Dragos Rachieru Most of the code was pulled from coil?
d

Dragos Rachieru

08/25/2022, 5:43 PM
No, I tried to implement the fetcher myself inspired from kamel
There's still room for improvement, but I don't know how to use bytearraychannel and okio
21 Views