saket/telephoto

sub-sampling didn't work when use SubSamplingImage

Closed this issue ยท 4 comments

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",
    )
}

test image

Screen_recording_20240723_212541.webm

That is such a long image! ๐Ÿ˜„

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.

Is that something you can use in the meantime?
Sorry for the late reply and thanks for the heads up.