Open saket opened 1 year ago
Thanks to @DSteve595, Modifier.zoomable()
will be available as a multiplatform library in the next release 🎉
Hi @saket! From what I can gather multiplatform in this context means Android and Desktop right? I can only see the Android and Desktop versions of the zoomable library published. I do see you have a reference to Apple in the original description of the issue, is this part still outstanding?
I do see you have a reference to Apple in the original description of the issue, is this part still outstanding?
Yep! Wanna help out by sending a PR? 😊
For folks following this issue, Coil has started publishing experimental builds with multiplatform support. I'm going to wait a bit for its APIs and maven coordinates to settle before integrating it with telephoto.
Hi, does it mean telephoto will support wasm target soon as well?
@LOOHP I don't have any plans for the web yet. Are you actually displaying large images on the web that require subsampling?
I'm working on displaying a large railway system map with each station being clickable to perform some action. So it needs to stay HD when it is zoomed in. If telephoto supports wasm as well, it would be fantastic as I will be able to use it for Android, IOS, JVM & Web all in the same Compose Multiplatform code.
Migrating
Modifier.zoomable()
to multiplatform ~should be easy~ is done, butSubSamplingImage()
will need to be decoupled from Android'sBitmapRegionDecoder
for lazy loading of bitmap tiles.Target platforms
JVM
javax.imageio.ImageIO
+ImageReadParam#setSourceRegion
can be used. Example usage.Apple
For loading of images, @colinrtwhite plans to migrate Coil to multiplatform in v3.