Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glide Compose can`t display animation image properly. #5273

Closed
ag2s20150909 opened this issue Sep 1, 2023 · 4 comments · Fixed by #5274
Closed

Glide Compose can`t display animation image properly. #5273

ag2s20150909 opened this issue Sep 1, 2023 · 4 comments · Fixed by #5274

Comments

@ag2s20150909
Copy link

ag2s20150909 commented Sep 1, 2023

Previously, I used this library landscapist to display animation image(like gif) normally, but after switching to the official Composite implementation, I found that animation image cannot be displayed normally, only show static images .

@rahulyadav07
Copy link

please provide image of behavour

@ag2s20150909 ag2s20150909 changed the title Glide Compose can`t display GIF properly. Glide Compose can`t display animation image properly. Sep 1, 2023
@ag2s20150909
Copy link
Author

please provide image of behavour

@OptIn(ExperimentalGlideComposeApi::class)
@Composable
fun TestImageScreen(uri: String="https://upload.wikimedia.org/wikipedia/commons/archive/e/ea/20230626033311%21Test.gif") {
    Column(modifier = Modifier.fillMaxSize()) {

        Text(text = "com.bumptech.glide.integration.compose.GlideImage")
        com.bumptech.glide.integration.compose.GlideImage(
            model = uri,
            contentScale = ContentScale.Fit,
            contentDescription = "",
            modifier = Modifier.fillMaxWidth()
        )

        Divider()

        Text(text = "com.skydoves.landscapist.glide.GlideImage")
        com.skydoves.landscapist.glide.GlideImage(
            imageModel = { uri },
            modifier = Modifier.fillMaxWidth(),
            imageOptions = ImageOptions(contentScale = ContentScale.Fit)
        )

    }
}


@ag2s20150909
Copy link
Author

Record_2023-09-01-21-37-16_2e5554fb2a6e63d489e51e410cdbf42c.mp4

@sjudd
Copy link
Collaborator

sjudd commented Sep 3, 2023

Thanks for the report and follow up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants