Skip to content

Add support for image-rs 0.24 #52

Open

Description

@qarmin

Since the latest version of image-rs library require Rust 1.56.0, I think that img_hash also should use Rust 2021 edition and bump minimal requirements.

For now I can't use image-rs 0.24.0, because img_hash crate cannot interoperate with this version and I have such errors(this works with 0.23)

error[E0277]: the trait bound `image::DynamicImage: Image` is not satisfied
   --> czkawka_core/src/similar_images.rs:606:50
    |
606 |                     let hash = hasher.hash_image(&image);
    |                                       ---------- ^^^^^^ the trait `Image` is not implemented for `image::DynamicImage`
    |                                       |
    |                                       required by a bound introduced by this call

Activity

  1. qarmin commented on May 29, 2022

    @qarmin
    Author

    For anyone wanting to use library with updated dependencies I created repo which use image 0.24.2 and have other libraries updated(logic is not changed)
    https://github.com/qarmin/img_hash
    https://crates.io/crates/image_hasher/

  2. lovasoa commented on Jul 16, 2022

    @lovasoa

    @qarmin : Is there any reason you chose to publish a new crate instead of contributing to this one ? I opened a pull request with your changes.

  3. CryZe commented on Jul 16, 2022

    @CryZe
    Contributor

    @lovasoa This crate is not very well maintained. I wish the author would add some co-maintainers. Though what worked out for me was simply using img_hash::image and then simply take the contents and construct a borrowed image from it. That way it's automatically compatible with all image versions.

  4. lovasoa commented on Jul 16, 2022

    @lovasoa

    @abonander , would you be open to adding some co-maintainers ?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions