abonander / img_hash

A Rust library for calculating perceptual hash values of images
Apache License 2.0
310 stars 62 forks source link

ImageHash should be serializable #51

Open Futsch1 opened 2 years ago

Futsch1 commented 2 years ago

Since it is fairly costly to calculate a hash, it makes sense to serialize an deserialize the ImageHash struct. To do this, the struct should derive Serialize and Deserialize from the serde crate.