Releases: YannickAlex07/imghash-rs
v1.3.1
What's Changed
- Added a new
matrix()
-method that allows access of the underlying bit matrix for theImageHash
.
Full Changelog: v1.3.0...v1.3.1
v1.3.0
What's New
Version 1.3 introduces a way of computing the hamming distance for two hashes:
// Will give an error if the two hashes are not of the same shape
let distance: Result<usize, String> = hash.distance(other_hash);
Further the version introduces a new shape
-function that can be used to get the shape of the underlying bit matrix:
let shape: (usize, usize) = hash.shape();
Finally the matrix
-attribute of the hash is now private. New hashes can only be created through the use of the new
-function on the ImageHash
.
Full Changelog: v1.2.0...v1.3.0
v1.2.0
Overview
This release introduces custom Grayscaling algorithms that can be utilized by setting the color_space
property on any hasher:
use imghash::{average::AverageHasher};
let hasher = AverageHasher {
width: 10,
height: 10,
color_space: ColorSpace::REC601, // this is the default
};
This allows the crate to be compatible with Pillows Grayscaling, therefore making it possible to use this crate as a replacement for some Python image hashing packages, as the generated hashes are now equal. Therefore it was also decided to set the default hash to REC601
as this is the one that Pillow uses.
This however also means some hashes will change (Difference hash will also change for REC709 which was the previous default), therefore it is important to do any reprocessing if needed.
What's Changed
- [#10] Support Different Grayscaling Algorithms by @YannickAlex07 in #13
Full Changelog: v1.1.1...v1.2.0
v1.1.1
Overview
This releases fixes a bug in the applying of dct over the columns of a matrix. The core was a missing transpose after applying it, which caused some images to get invalid perceptual hashes.
A side effect of this is that all perceptual will change with this release. Depending on the use case, re-computation of hashes might be required.
What's Changed
- [#8] Fix Transposing by @YannickAlex07 in #9
Full Changelog: v1.1.0...v1.1.1
v1.1.0
Overview
This PR updates the README to be complete with usage description and new workflows to make this repo ready for the OSS release!
PRs
- [#2] Finish README by @YannickAlex07 in #5
- [#3] Issue Templates by @YannickAlex07 in #6
- [NO-ISSUE] Prepare for OSS Release by @YannickAlex07 in #7
Full Changelog: v1.0.0...v1.1.0
v1.0.0
Initial Release 🎉
This release is the initial release for imghash-rs
which contains the following features:
- Generate Average Hash for an image
- Generate Perceptual Hash for an image
- Generate Difference Hash for an image
- Encode and decode image hashes
A followup release will shortly follow to extend the documentation and usage section.