sub-sampling didn't work when use SubSamplingImage
Closed this issue ยท 4 comments
jiyewushen commented
version:0.12.1
Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding ->
val zoomableState = rememberZoomableState()
val imageState = rememberSubSamplingImageState(
zoomableState = zoomableState,
imageSource = SubSamplingImageSource.asset("aaa.jpg")
)
SubSamplingImage(
modifier = Modifier
.fillMaxSize()
.padding(innerPadding)
.zoomable(zoomableState),
state = imageState,
contentDescription = "image",
)
}
Screen_recording_20240723_212541.webm
saket commented
That is such a long image! ๐
saket commented
A fix is available in 0.13.0-SNAPSHOT
. Is that something you can use in the meantime? I'll make a stable release sometime soon.
jiyewushen commented
Is that something you can use in the meantime?
Sorry for the late reply and thanks for the heads up.
saket commented
Fixed in version 0.13.0
: https://github.com/saket/telephoto/releases/tag/0.13.0