Skip to content

v1.2.0

Compare
Choose a tag to compare
@YannickAlex07 YannickAlex07 released this 26 Apr 10:04
· 4 commits to main since this release
ff2a6c3

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