Skip to content

Releases: YannickAlex07/imghash-rs

v1.3.1

09 Aug 09:26
7add0d8
Compare
Choose a tag to compare

What's Changed

  • Added a new matrix()-method that allows access of the underlying bit matrix for the ImageHash.

Full Changelog: v1.3.0...v1.3.1

v1.3.0

08 Aug 18:47
5f9c3d7
Compare
Choose a tag to compare

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

26 Apr 10:04
ff2a6c3
Compare
Choose a tag to compare

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

Full Changelog: v1.1.1...v1.2.0

v1.1.1

10 Apr 19:23
a817f88
Compare
Choose a tag to compare

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

Full Changelog: v1.1.0...v1.1.1

v1.1.0

07 Apr 18:02
f75a76e
Compare
Choose a tag to compare

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

Full Changelog: v1.0.0...v1.1.0

v1.0.0

01 Apr 18:14
107d01a
Compare
Choose a tag to compare

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.