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