Imghash-rs

Latest version: v0.3.0

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.3.1

- Added a new `matrix()`-method that allows access to a copy of the underlying bit matrix

1.3.0

- Added a new `distance`-method to compute the hamming distance between hashes
- Added a new `shape`-method to get the shape of an underlying bit matrix for a hash
- Made the bit matrix private and added a new `new`-function to create hashes

1.2.0

- Introduction of custom grayscaling algorithms. The crate now supports grayscaling using the REC709 or REC601 (new default) color space. This will actually now align the hashes with Python packages like `imagehash` that use Pillow under the hood. However, this will also cause some hashes to be different from previous versions.

1.1.1

- Fixed a bug where we didn't transpose a matrix back to its original orientation after applying the dct over the columns. This caused some images to get an invalid hash. This fix however will change all perceptual hashes generated by the perceptual hash function / hasher.

1.1.0

- Added workflow for pushing to main

1.0.0

- Added hashers for Average, Difference and Perceptual hashes
- Added utility functions for the hashers
- Added ImageHash object for encoding and decoding bit matricies

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.