panpf / sketch

Sketch is an image loading library designed for Compose Multiplatform and Android View. It is powerful and rich in functions. In addition to basic functions, it also supports GIF, SVG, video thumbnails, Exif Orientation, etc.
Apache License 2.0
2.05k stars 309 forks source link

Support for subsampling large images in Compose #161

Closed saket closed 1 year ago

saket commented 2 years ago

Hello, thanks for maintaining this library! Would it be possible to make the sampling behavior of SketchZoomImageView available to Compose UI as well?

panpf commented 2 years ago

Sorry, there are no such plans at the moment. The most important thing now is to release the stable version first, and there may be later.

yuqingweng commented 1 year ago

i need to+1 啥时候有啊

panpf commented 1 year ago

正在开发当中,还得一段时间,进度已经过半了

saket commented 1 year ago

FWIW, I recently released telephoto for displaying subsampled images in compose: https://saket.github.io/telephoto

At the time of writing this, Coil and Glide are supported, with plans for Picasso in the future. Let me know if anyone wants to see Sketch supported as well.

yuqingweng commented 1 year ago

希望看sketch的支持支持!!

panpf commented 1 year ago

A separate zoomimage (https://github.com/panpf/zoomimage) library is here, supporting compose and view. The logic and experience of the two versions are completely consistent.

The new zoomimage library is completely reconstructed on the basis of sketch-zoom, and the user experience is comprehensively improved. In addition to fixing some bugs, it also newly supports the animation and clarity gradient of subsampling tiles and supports glide, picasso, coil, and other image loader

It has now reached the beta stage of public testing. Welcome to the release page to download the APK and experience the effect.