Image crate problem: the trait `AsImageView` is not implemented for `DynamicImage`

Hi, I'm tried to run this example: show-image 0.14.0 - Docs.rs
But get the compilation error on line16: the trait AsImageView is not implemented for DynamicImage
Changing version of image crate in Cargo.toml seem to solve it, but codebase currently tied to version 0.24.8 and I can't change it because other stuff gets broken then. But for some reason I believe that it can be easily fixed without changing the image version. Would appreciate any help.

Use show_image version 0.13.1 instead? It depends on 0.24.

I'm not seeing a way around it otherwise, offhand - a cursory skim makes me think you can't really implement the trait yourself due to private fields, in which case you'd need the crate itself to supply image 0.24 support.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.